用户账号获取

This commit is contained in:
张松 2025-04-24 13:44:24 +08:00
parent a24692f31f
commit 3db86bfc1a
1 changed files with 11 additions and 0 deletions

View File

@ -101,6 +101,17 @@ public class UserInfoController {
return ResultGenerator.genSuccessResult();
}
/**
* 用户账号获取
* @param userId 用户主键
* @return 用户账号
*/
@GetMapping("/getPhoneByUserId")
public Result<?> getPhoneByUserId(@RequestParam String userId) {
UserInfo userInfo = userInfoNewService.getById(userId);
return ResultGenerator.genSuccessResult(userInfo == null ? null : userInfo.getLoginName());
}
@GetMapping("/verifyPhoneIsExist")
@ApiOperation(tags = {"页面-注册", "页面-H5注册", "页面-分享注册", "页面-会员开卡", "页面-分享_直接开户"}, value = "未注册手机号并获取验证码", notes = "验证该手机号是否注册,未注册即发送验证码", httpMethod = "GET")