Documentation
¶
Index ¶
- Variables
- type Login
- func (a *Login) DestroyToken(ctx context.Context, tokenString string) error
- func (a *Login) GenerateToken(ctx context.Context, userID string) (*schema.LoginTokenInfo, error)
- func (a *Login) GetCaptcha(ctx context.Context, length int) (*schema.LoginCaptcha, error)
- func (a *Login) ResCaptcha(ctx context.Context, w http.ResponseWriter, captchaID string, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var LoginSet = wire.NewSet(wire.Struct(new(Login), "*"), wire.Bind(new(admin.ILogin), new(*Login)))
LoginSet 注入Login
View Source
var ServiceSet = wire.NewSet( LoginSet, )
ServiceSet 注入
Functions ¶
This section is empty.
Types ¶
type Login ¶
Login 登录管理
func (*Login) DestroyToken ¶
DestroyToken 销毁令牌
func (*Login) GenerateToken ¶
GenerateToken 生成令牌
func (*Login) GetCaptcha ¶
GetCaptcha 获取图形验证码信息
func (*Login) ResCaptcha ¶
func (a *Login) ResCaptcha(ctx context.Context, w http.ResponseWriter, captchaID string, width, height int) error
ResCaptcha 生成并响应图形验证码
Click to show internal directories.
Click to hide internal directories.