feat(server-go): 耗材管理(库存/预警/采购建议,#16)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user