feat(server-go): 耗材管理(库存/预警/采购建议,#16)

This commit is contained in:
weijuesen
2026-08-12 18:03:49 +08:00
parent 6ada0c74c5
commit 65c993abb5
6 changed files with 244 additions and 0 deletions
+1
View File
@@ -115,6 +115,7 @@ func main() {
handler.RegisterWechatRoutes(api, db, wechatSvc)
handler.RegisterWeatherRoutes(api, db, weatherSvc)
handler.RegisterLampRoutes(api, db, s3Svc, cfg.S3BucketImages)
handler.RegisterConsumableRoutes(api, db)
// 启动高发病天气预警定时任务(未配置时跳过)
go startWeatherAlertLoop(db, weatherSvc, time.Duration(cfg.QWeatherIntervalMin)*time.Minute)