3 Commits

Author SHA1 Message Date
zizi
8565fa242e fix(wave3-staging): 去除 system/infra-server pom 的 repackage(修 admin-api 控制器单体内 404)
真因(比"嵌套Feign回环"诊断更深):yudao-module-system-server / infra-server 的 pom 带
spring-boot-maven-plugin repackage,被打成可执行 boot jar(class 落 BOOT-INF/classes/+Main-Class)。
作为 yudao-server fat jar 的嵌套依赖库时,Spring Boot 嵌套类加载器只读 jar 根 class、读不到
BOOT-INF/classes/ → system/infra 的 controller/service/@Primary 实现全加载不进 → /admin-api/system|infra/* 404,
且 game admin @PreAuthorize 经 Feign 回环到死掉的 rpc-api/system/permission 也 404。app-api 正常因 game 模块是普通库 jar。

修法:2 个 pom 去掉 repackage 改回纯库 jar(同 game-module-*-server)。
验证(主 agent 独立):BUILD SUCCESS;system-server 181MB→1.3MB、infra 172MB→601KB,UserController.class 落 jar 根、无 Main-Class;
mini-desktop 运行态 /admin-api/system/user/page→code:0 返 20 真实用户、/admin-api/ad/slot/page→code:0、/app-api/feed/stream 回归 200。
注:其余被注释未 bundle 的 yudao 模块(bpm/pay/member)pom 仍带 repackage,本波不动(不在 fat jar 内);将来 bundle 须同样去掉。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 05:26:30 +00:00
zizi
d7fac9038d fix(wave3-staging): yudao 单体启动装配修复 + application-staging.yaml(mini-desktop 真启动通过)
首次真启动整个 yudao-server 单体暴露预存装配缺陷(此前只验编译+单测)。按 live 错误栈两层根因修复:
- 撤销 yudao-server/pom.xml 对 spring-cloud-starter-openfeign 的排除——framework starter
  (YudaoSecurityRpcAutoConfiguration 等)自带 @EnableFeignClients 需 openfeign 在 classpath
- 补 yudao 上游漏标的 primary=false:OAuth2TokenCommonApi/TenantCommonApi/ApiAccessLogCommonApi/
  ApiErrorLogCommonApi 四个 @FeignClient + 对应 4 个 *ApiImpl 加 @Primary(同 PermissionApiImpl 范式),
  使单体内本地实现胜过 Feign 远程代理
- application-staging.yaml:DB/Redis→隔离容器 13306/16379(${ENV} 占位非明文)、nacos/xxl 关、
  mock-enable、tenant.enable=false(单租户)、openfeign 回环 48080

验证(主 agent 独立 mini-desktop 观测 + 本机编译):Started YudaoServerApplication;Flyway V1-V9 全 success;
24 张 game_* 表;/v3/api-docs 87 paths 9 模块无 game/ 前缀;POST /app-api/project/1/publish→admitted+gates 含 key=compliance;
本机 mvn -am compile BUILD SUCCESS。Application.java 未改(原 @EnableFeignClients 假设会致双 primary 冲突,实测不需要)。
P1 遗留:admin-api @PreAuthorize 端点撞 yudao 单体嵌套 Feign 回环 404(app-api 主链路不受影响)。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 04:55:23 +00:00
zizi
c4e2d73300 feat(backend): Wave1 后端脊柱 5 模块 + 8 类契约 + yudao-cloud fork 接线
- game-cloud:yudao-cloud fork(裁剪至 system/infra)+ 5 业务模块 project/aigc/runtime/feed/telemetry
- 黄金模块 game-module-project + 克隆 4 脊柱模块;46 单测绿 + 41 模块集成编译绿
- contracts/:8 类契约锁定(5 API YAML + sdk-interface.d.ts + game-package.schema + events 等)
- yudao-server 接线:全局组件扫描 + @MapperScan + Flyway V1-V5(baseline-version=0)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 09:10:05 +00:00