Files
oss/model/entity/file.go

29 lines
676 B
Go
Raw Permalink 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 (
"gitea.com/red-future/common/beans"
)
// File 存储文件实体
type File struct {
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
}
var FileCol = fileCol{
SQLBaseCol: beans.DefSQLBaseCol,
TenantId: "tenant_id",
FileURL: "file_url",
FileSize: "file_size",
}