feat:完善信息
This commit is contained in:
@ -22,6 +22,7 @@ type (
|
||||
Captcha string `json:"captcha" form:"captcha" binding:"required"`
|
||||
Password string `json:"password" form:"password" binding:"required"`
|
||||
RepeatPass string `json:"repeat_pass" form:"repeat_pass" binding:"required"`
|
||||
Identity int `json:"identity" form:"identity" binding:"required"`
|
||||
}
|
||||
)
|
||||
|
||||
@ -54,7 +55,7 @@ func (a *Account) Register(c *gin.Context) {
|
||||
}
|
||||
data, err := account.NewRegister()().Launch(&account.RegisterParams{
|
||||
Name: form.Name, Mobile: form.Mobile, Captcha: form.Captcha,
|
||||
Password: form.Password, RepeatPass: form.RepeatPass,
|
||||
Password: form.Password, RepeatPass: form.RepeatPass, Identity: form.Identity,
|
||||
})
|
||||
api.APIResponse(err, data)
|
||||
}
|
||||
|
Reference in New Issue
Block a user