feat: 迁移区服分析与游戏区服查询

This commit is contained in:
Yvan
2026-11-04 01:16:23 +08:00
parent fc27120950
commit 0bef29ae4f
27 changed files with 1113 additions and 6 deletions
+2 -1
View File
@@ -27,6 +27,7 @@ func NewGinEngine(runtime *config.Store, access *systemservice.AccessControlServ
func emptyHandlers() *handler.Set {
return &handler.Set{
Analytics: &handler.Analytics{},
ServerAnalysis: &handler.ServerAnalysis{},
Ledger: &handler.Ledger{},
ChannelPortrait: &handler.ChannelPortrait{},
BusinessPortrait: &handler.BusinessPortrait{},
@@ -107,7 +108,7 @@ func TestGinStartupLogsEveryRegisteredRoute(t *testing.T) {
if got, want := strings.Count(text, `"msg":"router registered"`), len(engine.Routes()); got != want {
t.Fatalf("registered route log count = %d, want %d", got, want)
}
if !strings.Contains(text, `"msg":"router register success"`) || !strings.Contains(text, `"route_count":243`) {
if !strings.Contains(text, `"msg":"router register success"`) || !strings.Contains(text, `"route_count":245`) {
t.Fatalf("startup route summary is missing: %s", text)
}
}