1
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user