- remove user2.ChangeMobile (use auth2.AddAuthBind instead)

This commit is contained in:
gazebo
2019-03-05 10:24:42 +08:00
parent 02f49207f1
commit 273c50f6b7
5 changed files with 37 additions and 35 deletions

View File

@@ -52,18 +52,3 @@ func (c *User2Controller) GetBindAuthInfo() {
return retVal, "", err
})
}
// @Title 修改手机号
// @Description 修改手机号
// @Param token header string true "认证token"
// @Param mobile query string true "新手机号"
// @Param mobileVerifyCode query string true "手机验证码通过auth2.SendVerifyCode获得"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /ChangeMobile [put]
func (c *User2Controller) ChangeMobile() {
c.callChangeMobile(func(params *tUser2ChangeMobileParams) (retVal interface{}, errCode string, err error) {
err = cms.ChangeMobile2(params.Ctx, params.Mobile, params.MobileVerifyCode)
return retVal, "", err
})
}