feat: 迁移商务工作台指标和仪表盘榜单

This commit is contained in:
Yvan
2026-11-04 01:25:51 +08:00
parent 0bef29ae4f
commit cbf0ee9be3
26 changed files with 1220 additions and 22 deletions
+2 -1
View File
@@ -28,6 +28,7 @@ func emptyHandlers() *handler.Set {
return &handler.Set{
Analytics: &handler.Analytics{},
ServerAnalysis: &handler.ServerAnalysis{},
Workbench: &handler.Workbench{},
Ledger: &handler.Ledger{},
ChannelPortrait: &handler.ChannelPortrait{},
BusinessPortrait: &handler.BusinessPortrait{},
@@ -108,7 +109,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":245`) {
if !strings.Contains(text, `"msg":"router register success"`) || !strings.Contains(text, `"route_count":249`) {
t.Fatalf("startup route summary is missing: %s", text)
}
}