|
@ -10,16 +10,16 @@ import ( |
|
|
|
|
|
|
|
|
// Shows is the golang structure for table shows.
|
|
|
// Shows is the golang structure for table shows.
|
|
|
type Shows struct { |
|
|
type Shows struct { |
|
|
Id uint64 `json:"id" orm:"id" ` // 主键
|
|
|
|
|
|
Cover string `json:"cover" orm:"cover" ` // 封面图URL
|
|
|
|
|
|
Title string `json:"title" orm:"title" ` // 标题
|
|
|
|
|
|
PublisherId uint64 `json:"publisherId" orm:"publisher_id" ` // 发布人ID
|
|
|
|
|
|
PublisherAvatar string `json:"publisherAvatar" orm:"publisher_avatar" ` // 发布人头像URL
|
|
|
|
|
|
PublishTime *gtime.Time `json:"publishTime" orm:"publish_time" ` // 发布时间
|
|
|
|
|
|
ViewCount uint `json:"viewCount" orm:"view_count" ` // 观看人数
|
|
|
|
|
|
CommentCount uint `json:"commentCount" orm:"comment_count" ` // 评论数
|
|
|
|
|
|
LikeCount uint `json:"likeCount" orm:"like_count" ` // 点赞数
|
|
|
|
|
|
Type int `json:"type" orm:"type" ` // 类型(1=文章,2=视频)
|
|
|
|
|
|
ClubId int `json:"clubId" orm:"club_id" ` // 所属俱乐部(0=无,1=博古)
|
|
|
|
|
|
VideoDuration uint `json:"videoDuration" orm:"video_duration" ` // 视频时长(秒)
|
|
|
|
|
|
|
|
|
Id uint64 `json:"id" orm:"id" description:"主键"` // 主键
|
|
|
|
|
|
Cover string `json:"cover" orm:"cover" description:"封面图URL"` // 封面图URL
|
|
|
|
|
|
Title string `json:"title" orm:"title" description:"标题"` // 标题
|
|
|
|
|
|
PublisherName string `json:"publisherName" orm:"publisher_name" description:"发布人名字"` // 发布人名字
|
|
|
|
|
|
PublisherAvatar string `json:"publisherAvatar" orm:"publisher_avatar" description:"发布人头像URL"` // 发布人头像URL
|
|
|
|
|
|
PublishTime *gtime.Time `json:"publishTime" orm:"publish_time" description:"发布时间"` // 发布时间
|
|
|
|
|
|
ViewCount uint `json:"viewCount" orm:"view_count" description:"观看人数"` // 观看人数
|
|
|
|
|
|
CommentCount uint `json:"commentCount" orm:"comment_count" description:"评论数"` // 评论数
|
|
|
|
|
|
LikeCount uint `json:"likeCount" orm:"like_count" description:"点赞数"` // 点赞数
|
|
|
|
|
|
Type int `json:"type" orm:"type" description:"类型(1=文章,2=视频)"` // 类型(1=文章,2=视频)
|
|
|
|
|
|
ClubId int `json:"clubId" orm:"club_id" description:"所属俱乐部(0=无,1=博古)"` // 所属俱乐部(0=无,1=博古)
|
|
|
|
|
|
VideoDuration uint `json:"videoDuration" orm:"video_duration" description:"视频时长(秒)"` // 视频时长(秒)
|
|
|
} |
|
|
} |