user_svc

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 16 Imported by: 0

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
}

func Login

func Login() LoginSvc

Jump to

Keyboard shortcuts

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