You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
import ( "context" )
type ( ILoginLogic interface { // Login 方法实现用户登录并生成 Token
Login(ctx context.Context, username string, password string) (string, error) // ValidateToken 验证 Token 是否有效
ValidateToken(ctx context.Context, tokenString string) (bool, error) } )
var ( localLoginLogic ILoginLogic )
func LoginLogic() ILoginLogic { if localLoginLogic == nil { panic("implement not found for interface ILoginLogic, forgot register?") } return localLoginLogic }
func RegisterLoginLogic(i ILoginLogic) { localLoginLogic = i }
|