添加消息队列消费者并优化租户存储总量更新逻辑

This commit is contained in:
2026-01-22 15:06:30 +08:00
parent 542c609d60
commit 4a1531fddb
4 changed files with 35 additions and 7 deletions

View File

@@ -15,3 +15,17 @@ type GetByTenantIdReq struct {
type GetByTenantIdRes struct {
*entity.TenantOssTotal
}
// UpdateUsedOssReq 更新使用存储总量请求
type UpdateUsedOssReq struct {
g.Meta `path:"/GetOneByTenantId" method:"get" tags:"租户存储总量管理" summary:"更新使用存储总量" dc:"更新使用存储总量"`
TenantId interface{} `json:"tenantId" v:"required#租户id不能为空"`
UsedOssSize int `bson:"usedOssSize" json:"usedOssSize"`
TotalOssSize int `bson:"totalOssSize" json:"totalOssSize"`
Updater interface{} `json:"updater" v:"required#更新人不能为空"`
}
// UpdateUsedOssRes 更新使用存储总量响应
type UpdateUsedOssRes struct {
}