外观SDK化C:UserBase 接入外观代理 starter(端点 GET /api/appearance 三态兜底)
build / build-push (push) Successful in 1m41s

- pom 加 yh-openapi-spring-boot-starter(聚合包例外须显式引出站引擎)+
  yh-appearance-spring-boot-starter(平台新件,proxy 默认直连 UserHome /oapi/appearance;
  不配 yh.open.services.userhome 时端点 503=预期兜底,前端通道 init 静默保键)
- ManageAccessInterceptor 白名单放行 /api/appearance(仅登录可读自身偏好;
  择迹暂存只含本行,工作区既有他人拦截器重构 WIP 未混入)
- 前端零改动(通道 init 裸 fetch;alova 不生成定义)
- 方案:《外观代理SDK化与侧栏默认翻转-实施方案-20261011.md》任务 C
This commit is contained in:
chenxing
2026-10-11 13:59:53 +08:00
parent 34750c03ac
commit d7d239e77c
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -195,6 +195,18 @@
<groupId>com.yunhai.platform</groupId>
<artifactId>yh-env-config-spring-boot-starter</artifactId>
</dependency>
<!-- 服务间出站调用引擎(YschOpenCall 自动装配):外观代理端点的上游调用链。
UserBase 是聚合 starter 例外,须显式引入(Notice/svc-hall/flow-center 走聚合包已含)。 -->
<dependency>
<groupId>com.yunhai.platform</groupId>
<artifactId>yh-openapi-spring-boot-starter</artifactId>
</dependency>
<!-- 外观偏好同源读端点 GET /api/appearance(三态 proxy/local/off,默认 proxy 代理 UserHome)。
平台件,不进聚合包;前端零消费(通道 init 裸 fetch),alova 勿生成定义。 -->
<dependency>
<groupId>com.yunhai.platform</groupId>
<artifactId>yh-appearance-spring-boot-starter</artifactId>
</dependency>
<!-- CAS 客户端已由 yh-auth-spring-boot-starter 传递引入(3.5.1):CAS 过滤器注册与
SPA 登录跳转统一在框架内,本工程不再直接依赖,避免重复定义过滤器 bean。 -->
@@ -38,6 +38,7 @@ public class ManageAccessInterceptor implements HandlerInterceptor {
"/*/base/GetUserScope",
"/*/base/GetSysDict",
"/*/base/RedirectTo/*",
"/api/appearance",
"/*/env-config");
private static final AntPathMatcher MATCHER = new AntPathMatcher();