admin

package
v0.0.0-...-0b911c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

LoginSet 注入Login

View Source
var ServiceSet = wire.NewSet(
	LoginSet,
)

ServiceSet 注入

Functions

This section is empty.

Types

type Login

type Login struct {
	Auth auth.Auther
}

Login 登录管理

func (*Login) DestroyToken

func (a *Login) DestroyToken(ctx context.Context, tokenString string) error

DestroyToken 销毁令牌

func (*Login) GenerateToken

func (a *Login) GenerateToken(ctx context.Context, userID string) (*schema.LoginTokenInfo, error)

GenerateToken 生成令牌

func (*Login) GetCaptcha

func (a *Login) GetCaptcha(ctx context.Context, length int) (*schema.LoginCaptcha, error)

GetCaptcha 获取图形验证码信息

func (*Login) ResCaptcha

func (a *Login) ResCaptcha(ctx context.Context, w http.ResponseWriter, captchaID string, width, height int) error

ResCaptcha 生成并响应图形验证码

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL