feat(knowledge): 图片上传接口(S3 存储,限 5MB jpg/png/webp)

This commit is contained in:
weijuesen
2026-08-12 12:12:28 +08:00
parent 8bb93ad5c3
commit c8aa213626
6 changed files with 201 additions and 2 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ func main() {
handler.RegisterVideoClipRoutes(api, db, cfg)
handler.RegisterVideoRecordRoutes(api, db, mediaSvc, cfg)
handler.RegisterStorageRoutes(api, db)
handler.RegisterKnowledgeRoutes(api, db)
handler.RegisterKnowledgeRoutes(api, db, s3Svc, cfg.S3BucketImages)
// 启动后台设备状态同步(每 30 秒查询 WVP 设备在线状态)
go startDeviceStatusSync(db, mediaSvc)