2025-12-26 13:59:02 +08:00
|
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
|
"gitee.com/red-future---jilin-g/common/do"
|
|
|
|
|
|
"oss/consts"
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// File 存储文件实体
|
|
|
|
|
|
type File struct {
|
|
|
|
|
|
do.MongoBaseDO `bson:",inline"` // 嵌入基础字段:Id, Creator, CreatedAt, Updater, UpdatedAt, TenantId, IsDeleted
|
|
|
|
|
|
// 基础信息
|
|
|
|
|
|
FileURL string `bson:"fileURL" json:"fileURL"` // 图URL
|
2025-12-29 14:42:56 +08:00
|
|
|
|
FileSize byte `bson:"fileSize" json:"fileSize"`
|
2025-12-26 13:59:02 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// CollectionName 存储集合名称
|
|
|
|
|
|
func (File) CollectionName() string {
|
|
|
|
|
|
return consts.FileCollection
|
|
|
|
|
|
}
|