文件存储-增加文件上传记录接口,增加定时同步租户文件存储容量信息接口

This commit is contained in:
2025-12-26 13:59:02 +08:00
parent 5693dd4952
commit 36c9b61db0
14 changed files with 518 additions and 0 deletions

7
consts/collections.go Normal file
View File

@@ -0,0 +1,7 @@
package consts
// MongoDB集合名称常量
const (
FileCollection = "file"
TenantOssTotalCollection = "tenant_oss_total"
)

5
consts/redis_key.go Normal file
View File

@@ -0,0 +1,5 @@
package consts
const TenantOssTotalKey = "oss:total:tenantId-%s"
const FileLockKey = "oss:lock:tenantId-%s"
const OssTotalKey = "oss:total:*"