feat: 多检测方式推荐引擎(#20,设备/紧急/操作者/成本偏好)

This commit is contained in:
weijuesen
2026-08-12 21:57:42 +08:00
parent 164ae63392
commit 47a2da3d0d
6 changed files with 338 additions and 1 deletions
+1
View File
@@ -117,6 +117,7 @@ func main() {
handler.RegisterLampRoutes(api, db, s3Svc, cfg.S3BucketImages)
handler.RegisterConsumableRoutes(api, db)
handler.RegisterConsultationRoutes(api, db)
handler.RegisterDetectionMethodRoutes(api, db)
// 启动高发病天气预警定时任务(未配置时跳过)
go startWeatherAlertLoop(db, weatherSvc, time.Duration(cfg.QWeatherIntervalMin)*time.Minute)