16 lines
533 B
Go
16 lines
533 B
Go
package request
|
||
|
||
// PublicRegister 用户前端注册请求(public)
|
||
type PublicRegister struct {
|
||
Username string `json:"username" binding:"required,min=3,max=64"`
|
||
Password string `json:"password" binding:"required,min=6,max=128"`
|
||
WelcomePhrase string `json:"welcomePhrase" binding:"required,min=1,max=255"`
|
||
|
||
// 当 auth.register_require_captcha=1 时必填
|
||
Captcha string `json:"captcha"`
|
||
CaptchaId string `json:"captchaId"`
|
||
|
||
// 当 auth.register_mode=invite 时必填
|
||
InviteCode string `json:"inviteCode"`
|
||
}
|