2025-12-26 13:59:02 +08:00
|
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
2026-02-24 16:49:31 +08:00
|
|
|
|
"gitea.com/red-future/common/beans"
|
2025-12-26 13:59:02 +08:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// File 存储文件实体
|
|
|
|
|
|
type File struct {
|
2026-03-18 13:17:59 +08:00
|
|
|
|
beans.SQLBaseDO `orm:",inherit"` // 嵌入基础字段:Id, Bid, Creator, CreatedAt, Updater, UpdatedAt, Deleter, DeletedAt, IsDeleted
|
|
|
|
|
|
// 业务字段
|
|
|
|
|
|
TenantId uint64 `orm:"tenant_id" json:"tenantId"` // 租户ID
|
|
|
|
|
|
FileURL string `orm:"file_url" json:"fileURL"` // 文件URL
|
|
|
|
|
|
FileSize int `orm:"file_size" json:"fileSize"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type fileCol struct {
|
|
|
|
|
|
beans.SQLBaseCol
|
|
|
|
|
|
TenantId string
|
|
|
|
|
|
FileURL string
|
|
|
|
|
|
FileSize string
|
2025-12-26 13:59:02 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-18 13:17:59 +08:00
|
|
|
|
var FileCol = fileCol{
|
|
|
|
|
|
SQLBaseCol: beans.DefSQLBaseCol,
|
|
|
|
|
|
TenantId: "tenant_id",
|
|
|
|
|
|
FileURL: "file_url",
|
|
|
|
|
|
FileSize: "file_size",
|
2025-12-26 13:59:02 +08:00
|
|
|
|
}
|