Documentation ¶ Index ¶ type Password type UseCase func NewUseCase(config *conf.Config) *UseCase func (uc *UseCase) Login(ctx kratosx.Context, username, password string) (string, error) func (uc *UseCase) RefreshToken(ctx kratosx.Context) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Password ¶ type Password struct { Password string `json:"password"` Time int64 `json:"time"` } type UseCase ¶ type UseCase struct { // contains filtered or unexported fields } func NewUseCase ¶ func NewUseCase(config *conf.Config) *UseCase func (*UseCase) Login ¶ func (uc *UseCase) Login(ctx kratosx.Context, username, password string) (string, error) Login 用户登录 func (*UseCase) RefreshToken ¶ func (uc *UseCase) RefreshToken(ctx kratosx.Context) (string, error) RefreshToken 刷新用户token Source Files ¶ View all Source files user.go Click to show internal directories. Click to hide internal directories.