This commit is contained in:
邹宗楠
2026-07-27 13:38:35 +08:00
parent d76fce41ad
commit b213cbea45
8 changed files with 67549 additions and 67377 deletions

View File

@@ -460,3 +460,19 @@ func (c *Auth2Controller) GetUserByMiniInfo() {
return retVal, "", err
})
}
// @Title 根据电话号码获取用户头肯
// @Description 根据电话号码获取用户头肯
// @Param phoneNumber query string true "电话号码"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetTokenByPhone [get]
func (c *Auth2Controller) GetTokenByPhone() {
c.callGetTokenByPhone(func(params *tAuth2GetTokenByPhoneParams) (retVal interface{}, errCode string, err error) {
result := api.Cacher.Get(params.PhoneNumber)
if result == nil {
err = fmt.Errorf("暂未获取到此用户信息")
}
return result, "", err
})
}