2024-11-09 14:59:27 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
const (
|
|
|
|
FileTypeItemImg = "item-img"
|
|
|
|
|
2024-11-09 16:36:28 +08:00
|
|
|
FileStateNormal = "normal"
|
|
|
|
FileStateDelete = "delete"
|
2024-11-09 14:59:27 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
type FileModel struct {
|
|
|
|
BaseModel
|
|
|
|
Name string
|
|
|
|
Type string
|
|
|
|
Size int64
|
|
|
|
Url string
|
|
|
|
SystemPath string
|
|
|
|
Key string
|
2024-11-09 16:36:28 +08:00
|
|
|
State string
|
|
|
|
Uid uint
|
2024-11-09 14:59:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (f *FileModel) TableName() string {
|
|
|
|
return "files"
|
|
|
|
}
|