2025-12-26 13:59:02 +08:00
|
|
|
package dto
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"oss/model/entity"
|
2026-03-18 13:17:59 +08:00
|
|
|
|
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
2025-12-26 13:59:02 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// GetByTenantIdReq 根据租户id获取存储总量请求
|
|
|
|
|
type GetByTenantIdReq struct {
|
|
|
|
|
g.Meta `path:"/GetOneByTenantId" method:"get" tags:"租户存储总量管理" summary:"获取存储总量" dc:"获取存储总量"`
|
2026-01-12 19:08:27 +08:00
|
|
|
TenantId interface{} `json:"tenantId" v:"required#租户id不能为空"`
|
2025-12-26 13:59:02 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetByTenantIdRes 根据租户id获取存储总量响应
|
|
|
|
|
type GetByTenantIdRes struct {
|
|
|
|
|
*entity.TenantOssTotal
|
|
|
|
|
}
|
2026-01-22 15:06:30 +08:00
|
|
|
|
|
|
|
|
// UpdateUsedOssReq 更新使用存储总量请求
|
|
|
|
|
type UpdateUsedOssReq struct {
|
|
|
|
|
g.Meta `path:"/GetOneByTenantId" method:"get" tags:"租户存储总量管理" summary:"更新使用存储总量" dc:"更新使用存储总量"`
|
|
|
|
|
|
2026-03-18 13:17:59 +08:00
|
|
|
TenantId uint64 `json:"tenantId" v:"required#租户id不能为空"`
|
|
|
|
|
UsedOssSize int `json:"usedOssSize"`
|
|
|
|
|
TotalOssSize int `json:"totalOssSize"`
|
2026-03-19 17:35:38 +08:00
|
|
|
Creator string `json:"creator"`
|
|
|
|
|
Updater string `json:"updater"`
|
2026-01-22 15:06:30 +08:00
|
|
|
}
|