32 lines
1.1 KiB
Go
32 lines
1.1 KiB
Go
package dto
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"oss/model/entity"
|
|
)
|
|
|
|
// GetByTenantIdReq 根据租户id获取存储总量请求
|
|
type GetByTenantIdReq struct {
|
|
g.Meta `path:"/GetOneByTenantId" method:"get" tags:"租户存储总量管理" summary:"获取存储总量" dc:"获取存储总量"`
|
|
TenantId interface{} `json:"tenantId" v:"required#租户id不能为空"`
|
|
}
|
|
|
|
// GetByTenantIdRes 根据租户id获取存储总量响应
|
|
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 {
|
|
}
|