20 lines
572 B
Go
20 lines
572 B
Go
|
|
package entity
|
|||
|
|
|
|||
|
|
import (
|
|||
|
|
"gitee.com/red-future---jilin-g/common/do"
|
|||
|
|
"oss/consts"
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
// TenantOssTotal 租户储存服务总计实体
|
|||
|
|
type TenantOssTotal struct {
|
|||
|
|
do.MongoBaseDO `bson:",inline"` // 嵌入基础字段:Id, Creator, CreatedAt, Updater, UpdatedAt, TenantId, IsDeleted
|
|||
|
|
// 基础信息
|
|||
|
|
UsedOssSize int64 `bson:"usedOssSize" json:"usedOssSize"`
|
|||
|
|
TotalOssSize int64 `bson:"totalOssSize" json:"totalOssSize"`
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// CollectionName 租户储存服务总计集合名称
|
|||
|
|
func (TenantOssTotal) CollectionName() string {
|
|||
|
|
return consts.TenantOssTotalCollection
|
|||
|
|
}
|