feat(server-go): 蚕匾/批次/饲养记录 CRUD 与权限(#7)

This commit is contained in:
weijuesen
2026-08-12 17:14:02 +08:00
parent f9d9202856
commit 362a70b8a8
5 changed files with 327 additions and 0 deletions
+1
View File
@@ -109,6 +109,7 @@ func main() {
handler.RegisterStorageRoutes(api, db)
handler.RegisterKnowledgeRoutes(api, db, s3Svc, cfg.S3BucketImages)
handler.RegisterInspectionRoutes(api, db, s3Svc, aiSvc, cfg.S3BucketImages)
handler.RegisterTrayBatchRoutes(api, db)
// 启动后台设备状态同步(每 30 秒查询 WVP 设备在线状态)
go startDeviceStatusSync(db, mediaSvc)