Files
oss/model/entity/file.go

21 lines
498 B
Go
Raw Normal View History

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