refactor(*): 稳定期治理 - 收敛核心架构、错误语义并修复跨项目数据竞态

This commit is contained in:
ddCat committed 2026-09-09 22:02:10 +08:00
1 parent 83d9622fd0
commit bf41ef3172
298 files changed
+12681 -26428

No files matched your search

+1 -33
View File
@@ -112,39 +112,7 @@ func run(ctx context.Context) error {
status := newSystemStatus(db, svc)
registerSystemStatusRoutes(api, status)
handler.RegisterOAuthCallbackRoutes(r, svc)
handler.RegisterAuthRoutes(api, svc)
handler.RegisterAppearanceRoutes(api, svc)
handler.RegisterFeatureAvailabilityRoutes(api, svc)
handler.RegisterResponseInterceptionRoutes(api, svc)
handler.RegisterAdminRoutes(api, svc)
handler.RegisterAdminAnalyticsRoutes(api, svc)
handler.RegisterAdminStorageRoutes(api, svc)
handler.RegisterAdminUpdateRoutes(api, svc)
handler.RegisterAdminSystemPerformanceRoutes(api, svc)
handler.RegisterAnnouncementRoutes(api, svc)
handler.RegisterFinanceRoutes(api, svc)
handler.RegisterPaymentRoutes(api, svc)
handler.RegisterLibTVRoutes(api, svc)
handler.RegisterTapNowRoutes(api, svc)
// 登录态模型目录代理:避免浏览器直连各上游时分别处理 CORS。
handler.RegisterChannelModelRoutes(api, svc)
handler.RegisterLogicalModelRoutes(api, svc)
handler.RegisterModelCatalogRoutes(api, svc)
handler.RegisterSystemProxyRoutes(api, svc)
handler.RegisterCustomRelayRoutes(api, svc)
handler.RegisterTaskRoutes(api, svc)
handler.RegisterComfyBridgeRoutes(api, svc)
handler.RegisterRunningHubRoutes(api, svc)
handler.RegisterSessionRoutes(api, svc)
handler.RegisterSkillRoutes(api, svc)
handler.RegisterUserDataRoutes(api, svc)
handler.RegisterChunkedUploadRoutes(api, svc)
handler.RegisterDiagnosticsRoutes(api, svc)
handler.RegisterPluginRoutes(api, svc)
projectAPI := api.Group("")
projectAPI.Use(handler.RequireFeature(svc, service.FeatureShortDrama))
handler.RegisterProjectRoutes(projectAPI, svc)
handler.RegisterCanvasShareRoutes(api, svc)
handler.RegisterCanvasAPI(api, svc)
r.NoRoute(handler.SystemProxyNoRouteHandler(svc))
listener, err := net.Listen("tcp", addr)