修改租户ID和更新者字段类型为interface{},优化租户存储容量处理逻辑
This commit is contained in:
@@ -18,8 +18,8 @@ type UploadFileRes struct {
|
||||
}
|
||||
|
||||
type TenantOssTotal struct {
|
||||
TenantId string `json:"tenantId"`
|
||||
UsedOssSize int `json:"usedOssSize"`
|
||||
TotalOssSize int `json:"totalOssSize"`
|
||||
Updater string `json:"updater"`
|
||||
TenantId interface{} `json:"tenantId"`
|
||||
UsedOssSize int `json:"usedOssSize"`
|
||||
TotalOssSize int `json:"totalOssSize"`
|
||||
Updater interface{} `json:"updater"`
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
// GetByTenantIdReq 根据租户id获取存储总量请求
|
||||
type GetByTenantIdReq struct {
|
||||
g.Meta `path:"/GetOneByTenantId" method:"get" tags:"租户存储总量管理" summary:"获取存储总量" dc:"获取存储总量"`
|
||||
TenantId string `json:"tenantId" v:"required#租户id不能为空"`
|
||||
TenantId interface{} `json:"tenantId" v:"required#租户id不能为空"`
|
||||
}
|
||||
|
||||
// GetByTenantIdRes 根据租户id获取存储总量响应
|
||||
|
||||
Reference in New Issue
Block a user