refactor: remove update mail api
This commit is contained in:
@@ -70,17 +70,6 @@ func (u *UserApi) ForgotPass(context *gin.Context) {
|
||||
response.Result(errCode, nil, context)
|
||||
}
|
||||
|
||||
// 修改邮箱
|
||||
func (u *UserApi) UpdateMail(context *gin.Context) {
|
||||
var param models.UserMailParam
|
||||
if err := context.ShouldBind(¶m); err != nil {
|
||||
response.Result(response.ErrCodeParamInvalid, nil, context)
|
||||
return
|
||||
}
|
||||
errCode := u.userService.UpdateMail(¶m)
|
||||
response.Result(errCode, nil, context)
|
||||
}
|
||||
|
||||
// 注销账号
|
||||
func (u *UserApi) Delete(context *gin.Context) {
|
||||
var param models.UserDeleteParam
|
||||
|
||||
Reference in New Issue
Block a user