Files
Go-Web-Template/server/model/system/request/public_register.go
2026-04-23 15:29:07 +08:00

16 lines
533 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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"`
}