更新接口
This commit is contained in:
Submodule UserhomeService deleted from 893c4e83ae
@@ -35,12 +35,22 @@ public class UserController {
|
||||
@Autowired
|
||||
private IUserCurrentRoleService userCurrentRoleService;
|
||||
|
||||
|
||||
/** 当前登录用户信息(CAS 注入)。 */
|
||||
@GetMapping("GetUserInfo")
|
||||
public BoaUser getUserInfo(BoaUser authUserWithDept) {
|
||||
return authUserWithDept;
|
||||
}
|
||||
|
||||
/**
|
||||
* 当前登录用户信息(旧 UserCenter 契约端点 {@code getuserinfo},等价于 GetUserInfo)。
|
||||
* 原版前端 {@code apiConf.Base.GetUserInfo} 调用此名,后端补齐以对齐迁移。
|
||||
*/
|
||||
@GetMapping("getuserinfo")
|
||||
public BoaUser getUserInfoLegacy(BoaUser authUserWithDept) {
|
||||
return authUserWithDept;
|
||||
}
|
||||
|
||||
/**
|
||||
* 当前用户可访问的应用全集(跨仓 UserBase 实时拉取,按应用类型分组)。
|
||||
* 前端据此:渲染分类 tab(含「全部」)+ 图标网格;常用区由 getUsedApp 独立提供。
|
||||
|
||||
@@ -46,16 +46,16 @@ yh:
|
||||
# 应用间签名鉴权(UserHome 作为调用方访问 UserBase 跨仓接口时使用)
|
||||
enabled: true
|
||||
# UserHome 在 UserBase 注册得到的 appKey/appSecret(应用注册后填入)
|
||||
app-key: 100000
|
||||
app-secret: change-me-in-phase0
|
||||
app-key: 100001
|
||||
app-secret: ec4e860206374c80938719fff8e14a86
|
||||
open:
|
||||
# yh-openapi 开放接口客户端(前缀必须是 yh.open,OpenApiProperties 绑定;base-host + base-path 拼出
|
||||
# 完整跨仓基址,openapi 客户端再拼 /oapi/** 端点;app-key/app-secret 同时驱动应用间签名)
|
||||
enabled: true
|
||||
base-host: http://localhost:8060
|
||||
base-path: /userbase
|
||||
app-key: 100000
|
||||
app-secret: change-me-in-phase0
|
||||
app-key: 100001
|
||||
app-secret: ec4e860206374c80938719fff8e14a86
|
||||
|
||||
logging:
|
||||
level:
|
||||
|
||||
Reference in New Issue
Block a user