mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-05 08:07:06 +08:00
31 lines
1.6 KiB
Go
31 lines
1.6 KiB
Go
package common_model
|
|
|
|
//Album 相册实体
|
|
type Album struct {
|
|
ID uint `gorm:"primarykey;comment:'主键ID'"`
|
|
Cid uint `gorm:"not null;default:0;comment:'类目ID'"`
|
|
Aid uint `gorm:"not null;default:0;comment:'管理ID'"`
|
|
Uid uint `gorm:"not null;default:0;comment:'用户ID'"`
|
|
Type int `gorm:"not null;default:10;comment:'文件类型: [10=图片, 20=视频]''"`
|
|
Name string `gorm:"not null;default:'';comment:'文件名称''"`
|
|
Uri string `gorm:"not null;comment:'文件路径'"`
|
|
Ext string `gorm:"not null;default:'';comment:'文件扩展'"`
|
|
Size int64 `gorm:"not null;default:0;comment:文件大小"`
|
|
IsDelete uint8 `gorm:"not null;default:0;comment:'是否删除: 0=否, 1=是'"`
|
|
CreateTime int64 `gorm:"autoCreateTime;not null;comment:'创建时间'"`
|
|
UpdateTime int64 `gorm:"autoUpdateTime;not null;comment:'更新时间'"`
|
|
DeleteTime int64 `gorm:"not null;default:0;comment:'删除时间'"`
|
|
}
|
|
|
|
//AlbumCate 相册分类实体
|
|
type AlbumCate struct {
|
|
ID uint `gorm:"primarykey;comment:'主键ID'"`
|
|
Pid uint `gorm:"not null;default:0;comment:'父级ID'"`
|
|
Type int `gorm:"not null;default:10;comment:'文件类型: [10=图片, 20=视频]''"`
|
|
Name string `gorm:"not null;default:'';comment:'分类名称''"`
|
|
IsDelete uint8 `gorm:"not null;default:0;comment:'是否删除: 0=否, 1=是'"`
|
|
CreateTime int64 `gorm:"autoCreateTime;not null;comment:'创建时间'"`
|
|
UpdateTime int64 `gorm:"autoUpdateTime;not null;comment:'更新时间'"`
|
|
DeleteTime int64 `gorm:"not null;default:0;comment:'删除时间'"`
|
|
}
|