Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JwtService ¶
type JwtService struct {
// contains filtered or unexported fields
}
func NewJwtService ¶
func NewJwtService(ctx *models.Context) *JwtService
func (*JwtService) GetRedisToken ¶
func (j *JwtService) GetRedisToken(userId string) (token string, err error)
GetRedisToken 获取redis token
func (*JwtService) SetRedisToken ¶
func (j *JwtService) SetRedisToken(userId string, token string) error
SetRedisToken 设置token
type UserServer ¶
type UserServer struct {
// contains filtered or unexported fields
}
func NewUserServer ¶
func NewUserServer() *UserServer
func (*UserServer) GetUserInfo ¶
func (u *UserServer) GetUserInfo(userId string) (*models.UserInfo, error)
func (*UserServer) Login ¶
func (u *UserServer) Login(user *models.UserLoginParams) (*models.UserInfo, error)
Login 登录
func (*UserServer) SignUp ¶
func (u *UserServer) SignUp(user *models.UserRegisterParams) (*models.UserInfo, error)
SignUp 注册
Click to show internal directories.
Click to hide internal directories.