Files
2026-10-27 16:44:55 +08:00

89 lines
4.0 KiB
Go

package proto
import "videoweb/pub/pubdef"
// PlayletTopicPageListReq 专题剧单分页请求
type PlayletTopicPageListReq struct {
pubdef.Page
}
// PlayletTopicPageListResp 专题剧单分页响应
type PlayletTopicPageListResp struct {
TotalCount int64 `json:"totalCount"` // 总共数量
PageSize int `json:"pageSize"` // 每页数
PageNum int `json:"pageNum"` // 页数
List []*PlayletTopicPageItem `json:"list"` // 专题集合
SeoInfo *SeoInfo `json:"seoInfo,omitempty"` // 页面SEO信息
}
// PlayletTopicPageItem 专题剧单分页项
type PlayletTopicPageItem struct {
Id int64 `json:"id"` // 专题ID
Name string `json:"name"` // 专题名称
Slug string `json:"slug"` // slug
Desc string `json:"desc"` // 描述
Icon string `json:"icon"` // 图标
Rank int64 `json:"rank"` // 排序,越大越靠前
PlayletCount int64 `json:"playletCount"` // 上架短剧数量
Covers []string `json:"covers"` // 展示封面集合
List []*CommonData `json:"list"` // 专题下短剧集合
SeoInfo *SeoInfo `json:"seoInfo"` // 专题SEO
}
// PlayletTopicDetailReq 专题详情请求
type PlayletTopicDetailReq struct {
pubdef.Page
Id int64 `form:"id" json:"id" binding:"required"` // 专题ID
}
// PlayletTopicDetailResp 专题详情响应
type PlayletTopicDetailResp struct {
Id int64 `json:"id"` // 专题ID
Name string `json:"name"` // 专题名称
Slug string `json:"slug"` // slug
Desc string `json:"desc"` // 描述
Icon string `json:"icon"` // 图标
Rank int64 `json:"rank"` // 排序,越大越靠前
PlayletCount int64 `json:"playletCount"` // 上架短剧数量
Covers []string `json:"covers"` // 顶部封面集合
TotalCount int64 `json:"totalCount"` // 短剧总数
PageSize int `json:"pageSize"` // 每页数
PageNum int `json:"pageNum"` // 页数
List []CommonData `json:"list"` // 专题短剧列表
MoreTopics []*PlayletTopicPageItem `json:"moreTopics"` // 更多专题
SeoInfo *SeoInfo `json:"seoInfo"` // 专题SEO
}
// PlayletThemeListResponse app端题材列表响应
type PlayletThemeListResponse struct {
List []*PlayletThemeItem `json:"list"` // 题材列表
}
// PlayletThemeItem app端题材列表项
type PlayletThemeItem struct {
Id int64 `json:"id"` // 题材ID
Name string `json:"name"` // 题材名称
Slug string `json:"slug"` // slug
Icon string `json:"icon"` // 题材图标,已拼接图片域名
Rank int64 `json:"rank"` // 排序,越大越靠前
Status bool `json:"status"` // 上架状态
IsRecommend bool `json:"isRecommend"` // 是否推荐
PlayletCount int64 `json:"playletCount"` // 该题材绑定的上架短剧数量
SeoInfo *SeoInfo `json:"seoInfo"` // 题材对应页面 SEO 信息
}
// PlayletTagListResponse app端短剧标签列表响应
type PlayletTagListResponse struct {
List []*PlayletTagItem `json:"list"` // 标签列表
}
// PlayletTagItem app端短剧标签列表项
type PlayletTagItem struct {
Id int64 `json:"id"` // 标签ID
Name string `json:"name"` // 标签名称
Slug string `json:"slug"` // slug
Rank int64 `json:"rank"` // 排序,越大越靠前
Status bool `json:"status"` // 上架状态
SeoInfo *SeoInfo `json:"seoInfo"` // 标签对应页面 SEO 信息
}