Documentation ¶
Index ¶
Constants ¶
View Source
const ( AttachTypeSupplier = iota + 1 AttachTypeAVL )
View Source
const ( FileServerTypeLocal = "local" FileServerTypeTUSD = "tusd" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attach ¶
type Attach struct { ID int64 `gorm:"primary_key" json:"id"` FileName string `gorm:"size:50;column:file_name;index" json:"file_name"` // URL string `gorm:"size:255;column:url" json:"url"` // TUSD Kind string `gorm:"size:10;column:kind" json:"kind"` // local /tusd Obj string `gorm:"size:50;column:obj;index" json:"obj"` // 所属对象 KeyID uint `gorm:"column:fid;index" json:"-"` // 对象id Sub string `gorm:"size:50;column:sub;index" json:"sub"` // 对象子分组 CreatedAt *time.Time `json:"created_at"` // 创建时间 TblName string `gorm:"-"` Uuid string `gorm:"-"` // uuid路径名 }
附件
func UploadAttach ¶
Click to show internal directories.
Click to hide internal directories.