Files
oss/model/entity/file.go

20 lines
490 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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
FileSize byte `bson:"fileSize" json:"fileSize"`
}
// CollectionName 存储集合名称
func (File) CollectionName() string {
return consts.FileCollection
}