feat:空域详情直接返回用户名

This commit is contained in:
gyb 2026-03-19 14:52:57 +08:00
parent 52ca4f0c6c
commit 6969e1788e
3 changed files with 21 additions and 0 deletions

View File

@ -32,6 +32,16 @@ public interface RemoteUserService
@GetMapping("/user/info/{username}") @GetMapping("/user/info/{username}")
public R<LoginUser> getUserInfo(@PathVariable("username") String username, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); public R<LoginUser> getUserInfo(@PathVariable("username") String username, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
/**
* 根据用户ID获取用户名称
*
* @param userId 用户ID
* @param source 请求来源
* @return 结果
*/
@GetMapping("/user/getName/{userId}")
public R<String> getUserName(@PathVariable("userId") Long userId, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
/** /**
* 注册用户信息 * 注册用户信息
* *

View File

@ -31,6 +31,12 @@ public class RemoteUserFallbackFactory implements FallbackFactory<RemoteUserServ
return R.fail("获取用户失败:" + throwable.getMessage()); return R.fail("获取用户失败:" + throwable.getMessage());
} }
@Override
public R<String> getUserName(Long userId, String source)
{
return R.fail("获取用户名称失败:" + throwable.getMessage());
}
@Override @Override
public R<Boolean> registerUserInfo(SysUser sysUser, String source) public R<Boolean> registerUserInfo(SysUser sysUser, String source)
{ {

View File

@ -81,6 +81,11 @@ public class AirlineAreaVO extends BaseEntity {
*/ */
private String remark; private String remark;
/**
* 创建者名称
*/
private String createByName;
/** /**
* 坐标点信息 * 坐标点信息
*/ */