Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorMessage ¶
type ErrorMessage struct {
Message string `json:"message"`
}
ErrorMessage 定义错误信息的结构
type LoginRequest ¶
LoginRequest 定义登录请求的结构
type RegisterRequest ¶
type RegisterRequest struct { Username string `json:"username"` Email string `json:"email"` Password string `json:"password"` ConfirmPassword string `json:"confirmPassword"` }
RegisterRequest 定义注册请求的结构
type Service ¶
type Service struct { Repo *model.Repo JWT *auth.JWTService }
func (*Service) HandleRegister ¶
HandleRegister 处理注册请求
Click to show internal directories.
Click to hide internal directories.