后台添加接口返回用户信息

This commit is contained in:
2025-08-19 14:41:40 +08:00
parent ac2c8050df
commit acc7bf1402
2 changed files with 8 additions and 4 deletions

View File

@@ -461,7 +461,11 @@ public class UserCheckAdminService {
return BusiResult.success(result);
}
public UserVo getUser(Long uid){
return usersService.getUserVoByUid(uid);
public UserVo getUser(Long erbanNo) {
Users user = usersService.getUserByErbanNo(erbanNo);
if (user == null) {
throw new AdminServiceException(BusiStatus.USERNOTEXISTS);
}
return usersService.getUserVoByUid(user.getUid());
}
}

View File

@@ -82,8 +82,8 @@ public class UserCheckAdminController extends BaseController {
@RequestMapping("/getUser")
@ResponseBody
public BusiResult<UserVo> getUser(Long uid) {
UserVo userVo = userCheckAdminService.getUser(uid);
public BusiResult<UserVo> getUser(Long erbanNo) {
UserVo userVo = userCheckAdminService.getUser(erbanNo);
return BusiResult.success(userVo);
}