Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginSvc ¶
type LoginSvc interface { // Register 注册 Register(ctx context.Context, req *api.RegisterRequest) (*api.RegisterResponse, error) // Login 登录 Login(ctx *gin.Context, req *api.LoginRequest) (*api.LoginResponse, error) // Logout 登出 Logout(ctx *gin.Context, req *api.LogoutRequest) (*api.LogoutResponse, error) // Middleware 鉴权中间件 Middleware() gin.HandlerFunc // Get 从上下文中获取用户登录信息 Get(ctx context.Context) *model.AuthInfo }
Click to show internal directories.
Click to hide internal directories.