26 lines
569 B
Go
26 lines
569 B
Go
package entity
|
||
|
||
import (
|
||
"gitea.com/red-future/common/beans"
|
||
)
|
||
|
||
// File 存储文件实体
|
||
type File struct {
|
||
beans.SQLBaseDO `orm:",inherit"` // 嵌入基础字段:Id, Bid, Creator, CreatedAt, Updater, UpdatedAt, Deleter, DeletedAt, IsDeleted
|
||
// 业务字段
|
||
FileURL string `orm:"file_url" json:"fileURL"` // 文件URL
|
||
FileSize int `orm:"file_size" json:"fileSize"`
|
||
}
|
||
|
||
type fileCol struct {
|
||
beans.SQLBaseCol
|
||
FileURL string
|
||
FileSize string
|
||
}
|
||
|
||
var FileCol = fileCol{
|
||
SQLBaseCol: beans.DefSQLBaseCol,
|
||
FileURL: "file_url",
|
||
FileSize: "file_size",
|
||
}
|