feat:完善信息

This commit is contained in:
henry
2021-10-12 15:48:20 +08:00
parent 42eae2373d
commit cf3bc8ffb4
2 changed files with 6 additions and 2 deletions

View File

@ -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)
}