package model const ( FileTypeItemImg = "item-img" FileStateNormal = "normal" FileStateDelete = "delete" ) type FileModel struct { BaseModel Name string Type string Size int64 Url string SystemPath string Key string State string Uid uint } func (f *FileModel) TableName() string { return "files" }