Documentation
¶
Index ¶
- func CheckCode(svc *svc.Svc) gin.HandlerFunc
- func Current(svc *svc.Svc) gin.HandlerFunc
- func PasswordCheck(svc *svc.Svc) gin.HandlerFunc
- func Register(svc *svc.Svc) gin.HandlerFunc
- func ResetPassword(svc *svc.Svc) gin.HandlerFunc
- func RetrievePassword(svc *svc.Svc) gin.HandlerFunc
- func RetrievePasswordSendCode(svc *svc.Svc) gin.HandlerFunc
- func SendRegisterEmailCode(svc *svc.Svc, typ string) gin.HandlerFunc
- func UpdateAvatar(svc *svc.Svc) gin.HandlerFunc
- func UpdateDetail(svc *svc.Svc) gin.HandlerFunc
- func WcaAuthCallback(svc *svc.Svc) gin.HandlerFunc
- func WcaAuthInit(svc *svc.Svc) gin.HandlerFunc
- func WcaAuthMe(svc *svc.Svc) gin.HandlerFunc
- type CheckCodeReq
- type PasswordCheckRequest
- type RegisterReq
- type ResetPasswordReq
- type RetrievePasswordReq
- type RetrievePasswordResp
- type RetrievePasswordSendCodeReq
- type SendRegisterEmailCodeReq
- type SendRegisterEmailCodeResp
- type UpdateAvatarReq
- type UpdateDetailReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PasswordCheck ¶
func PasswordCheck(svc *svc.Svc) gin.HandlerFunc
func ResetPassword ¶
func ResetPassword(svc *svc.Svc) gin.HandlerFunc
func RetrievePassword ¶
func RetrievePassword(svc *svc.Svc) gin.HandlerFunc
func RetrievePasswordSendCode ¶
func RetrievePasswordSendCode(svc *svc.Svc) gin.HandlerFunc
func SendRegisterEmailCode ¶
func SendRegisterEmailCode(svc *svc.Svc, typ string) gin.HandlerFunc
func UpdateAvatar ¶
func UpdateAvatar(svc *svc.Svc) gin.HandlerFunc
func UpdateDetail ¶
func UpdateDetail(svc *svc.Svc) gin.HandlerFunc
func WcaAuthCallback ¶
func WcaAuthCallback(svc *svc.Svc) gin.HandlerFunc
WcaAuthCallback WCA 回调,用 code 换 token、获取用户、生成 JWT、跳回前端或返回调试信息
func WcaAuthInit ¶
func WcaAuthInit(svc *svc.Svc) gin.HandlerFunc
WcaAuthInit 发起 WCA 登录,302 跳转到 WCA 授权页
Types ¶
type CheckCodeReq ¶
type PasswordCheckRequest ¶
type RegisterReq ¶
type RegisterReq struct {
// 用户数据
LoginID string `json:"loginID"`
UserName string `json:"userName"`
ActualName string `json:"actualName"`
EnName string `json:"enName"`
Password string `json:"password"`
TimeStamp int64 `json:"timestamp"`
QQ string `json:"QQ"`
// 验证
Email string `json:"email"`
EmailCode string `json:"emailCode"`
// 旧数据
CubeID string `json:"cubeID"` // v2 留下的 CubeID
InitPassword string `json:"initPassword"` // 初始化密码 todo bind
}
type ResetPasswordReq ¶
type RetrievePasswordReq ¶
type RetrievePasswordReq struct {
CheckCodeReq
Password string `json:"password"` // 密码(加密前)
TimeStamp int64 `json:"timestamp"` // 创建时间戳
}
type RetrievePasswordResp ¶
type UpdateAvatarReq ¶
Click to show internal directories.
Click to hide internal directories.