Documentation
¶
Overview ¶
用户相册组件
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Albumn ¶
type Albumn struct { Id uint `gorm:"column:id;type:int unsigned;primary_key;autoIncrement;not null" form:"id" json:"id"` Uid uint `gorm:"column:uid;type:int unsigned;comment:用户ID" form:"uid" json:"uid"` // 用户ID Name string `gorm:"column:name;type:varchar(100);comment:相册名称" form:"name" json:"name"` // 相册名称 Fid uint `gorm:"column:fid;type:int unsigned;comment:上级ID" form:"fid" json:"fid"` // 上级ID CreatedAt string `gorm:"column:created_at;type:datetime;comment:添加时间" form:"created_at" json:"created_at"` // 添加时间 IsDeleted uint8 `gorm:"column:is_deleted;type:tinyint unsigned;comment:是否删除" form:"is_deleted" json:"is_deleted"` // 是否删除 UpdatedAt string `gorm:"column:updated_at;type:datetime;comment:修改时间" form:"-" json:"-"` // 修改时间 Thumb uint `gorm:"column:thumb;type:int unsigned;comment:封面图ID" form:"thumb" json:"thumb"` // 封面图ID IsVideo uint8 `gorm:"column:is_video;type:tinyint unsigned;comment:是否为视频相册" form:"is_video" json:"is_video"` // 是否为视频相册 IsPeople uint8 `gorm:"column:is_people;type:tinyint unsigned;comment:是否为人物相册" form:"is_people" json:"is_people"` // 是否为人物相册 IsStory uint8 `gorm:"column:is_story;type:tinyint unsigned;comment:是否为故事集" form:"is_story" json:"is_story"` // 是否为故事集 IsMore uint8 `gorm:"column:is_more;type:tinyint unsigned;comment:是否为更多相册" form:"is_more" json:"is_more"` // 是否为更多相册 }
相册表
type AlbumnPicture ¶
type AlbumnPicture struct { Id uint `gorm:"column:id;type:int unsigned;primary_key;autoIncrement;not null" form:"id" json:"id"` Uid uint `gorm:"column:uid;type:int unsigned;comment:上传人" form:"uid" json:"uid"` //上传人 Fid uint `gorm:"column:fid;type:int unsigned;comment:文件ID" form:"fid" json:"fid"` //文件ID Aid uint `gorm:"column:aid;type:int unsigned;comment:所属相册ID" form:"aid" json:"aid"` //所属相册ID CreatedAt string `gorm:"column:created_at;type:datetime;comment:添加时间" form:"created_at" json:"created_at"` //添加时间 IsDeleted uint8 `gorm:"column:is_deleted;type:tinyint unsigned;comment:是否删除" form:"is_deleted" json:"is_deleted"` //是否删除 }
相册图片表
Click to show internal directories.
Click to hide internal directories.