feat:优化项目信息

This commit is contained in:
henry
2021-12-01 14:12:23 +08:00
parent c27e115517
commit 3abfe92add
32 changed files with 397 additions and 429 deletions

View File

@ -24,7 +24,6 @@ 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"`
}
)
@ -57,7 +56,7 @@ func (a *Account) Register(c *gin.Context) {
}
data, err := account.NewRegister()(api.GetLocal()(c).(string)).Launch(&account.RegisterParams{
Name: form.Name, Mobile: form.Mobile, Captcha: form.Captcha,
Password: form.Password, RepeatPass: form.RepeatPass, Identity: form.Identity,
Password: form.Password, RepeatPass: form.RepeatPass,
})
api.APIResponse(err, data)(c)
}