fix(server-go): 恢复 /health 路由(原 health.go 被覆盖),健康画像独立注册

This commit is contained in:
weijuesen
2026-08-13 14:31:00 +08:00
parent 492d1ef71c
commit 3e9916abd2
2 changed files with 11 additions and 3 deletions
+2 -1
View File
@@ -118,7 +118,8 @@ func main() {
handler.RegisterConsultationRoutes(api, db)
handler.RegisterDetectionMethodRoutes(api, db)
handler.RegisterTraceRoutes(api, db)
handler.RegisterHealthRoutes(api, db)
handler.RegisterHealthRoutes(api)
handler.RegisterHealthProfileRoutes(api, db)
// 启动高发病天气预警定时任务(未配置时跳过)
go startWeatherAlertLoop(db, weatherSvc, time.Duration(cfg.QWeatherIntervalMin)*time.Minute)