92 lines
4.1 KiB
Go
92 lines
4.1 KiB
Go
package proto
|
|
|
|
// PlayletResourceListReq web端短剧媒资列表请求
|
|
type PlayletResourceListReq struct {
|
|
Title *string `form:"title" json:"title"` // 标题
|
|
Tag *string `form:"tag" json:"tag"` // 标签
|
|
MediaType *int `form:"media_type" json:"media_type"` // 媒体类型 1-动漫 2-漫画 4-漫画短剧 5-短剧 6-普通短剧
|
|
SyncType *int `form:"sync_type" json:"sync_type"` // 同步类型 1-全量同步 2-增量同步
|
|
PageNumber int `form:"pageNumber" json:"pageNumber"` // 页码
|
|
PageSize int `form:"pageSize" json:"pageSize"` // 个数
|
|
}
|
|
|
|
// PlayletResourceListItem web端短剧媒资列表项
|
|
type PlayletResourceListItem struct {
|
|
ID uint `json:"id"`
|
|
VloggerId uint `json:"vlogger_id"`
|
|
Title string `json:"title"` // 标题
|
|
SaleCoin uint `json:"sale_coin"` // 整部售价
|
|
HorizontalCover string `json:"horizontal_cover"` // 横版封面
|
|
VerticalCover string `json:"vertical_cover"` // 竖版封面
|
|
Summary string `json:"summary"` // 简介
|
|
TotalEpisode uint `json:"total_episode"` // 总集数
|
|
UpdateStatus int `json:"update_status"` // 更新状态 1-连载中 2-已完结
|
|
MediaType int `json:"media_type"` // 媒体类型
|
|
Anchor string `json:"anchor"` // 作者
|
|
TagsText string `json:"tags_text"` // 标签文字
|
|
DataVersion int8 `json:"data_version"` // 数据版本
|
|
TerminalCdo string `json:"terminal_cdo"` // 上传者
|
|
CreateTime int64 `json:"create_time"` // 创建时间
|
|
UpdateTime int64 `json:"update_time"` // 修改时间
|
|
IsAdd bool `json:"isAdd"` // 是否已加入后台数据
|
|
}
|
|
|
|
// PlayletResourceListResp web端短剧媒资列表响应
|
|
type PlayletResourceListResp struct {
|
|
List []*PlayletResourceListItem `json:"list"`
|
|
Total uint `json:"total"`
|
|
}
|
|
|
|
// PlayletResourceUseReq web端短剧媒资入库请求
|
|
type PlayletResourceUseReq struct {
|
|
Ids []uint `json:"ids"` // 媒资中心资源ID集合
|
|
}
|
|
|
|
// PlayletResourceChapterListReq web端短剧媒资剧集列表请求
|
|
type PlayletResourceChapterListReq struct {
|
|
Id uint `form:"id" json:"id" binding:"required"` // 媒资中心资源ID
|
|
}
|
|
|
|
// PlayletResourceChapterItem web端短剧媒资剧集项
|
|
type PlayletResourceChapterItem struct {
|
|
Id uint `json:"id"` // 媒资内容ID
|
|
EpisodeNumber int `json:"episodeNumber"` // 第几集
|
|
Title string `json:"title"` // 章节名
|
|
Cover string `json:"cover"` // 封面
|
|
VideoUrl string `json:"videoUrl"` // 播放地址
|
|
Height uint `json:"height"` // 高
|
|
Width uint `json:"width"` // 宽
|
|
MediaSize uint `json:"mediaSize"` // 资源大小
|
|
PlayTime uint `json:"playTime"` // 播放时长(秒)
|
|
SaleCoin uint `json:"saleCoin"` // 单集售价
|
|
HashId string `json:"hashId"` // 资源hash
|
|
CreateTime int64 `json:"createTime"` // 创建时间
|
|
UpdateTime int64 `json:"updateTime"` // 更新时间
|
|
}
|
|
|
|
// PlayletResourceChapterListResp web端短剧媒资剧集列表响应
|
|
type PlayletResourceChapterListResp struct {
|
|
MediaId uint `json:"mediaId"` // 媒资中心资源ID
|
|
Title string `json:"title"` // 短剧标题
|
|
List []*PlayletResourceChapterItem `json:"list"` // 剧集列表
|
|
Total int `json:"total"` // 剧集数量
|
|
}
|
|
|
|
// PlayletResourceUseSuccess web端短剧媒资入库成功项
|
|
type PlayletResourceUseSuccess struct {
|
|
MediaId uint `json:"mediaId"`
|
|
PlayletId int64 `json:"playletId"`
|
|
}
|
|
|
|
// PlayletResourceUseFailed web端短剧媒资入库失败项
|
|
type PlayletResourceUseFailed struct {
|
|
MediaId uint `json:"mediaId"`
|
|
Reason string `json:"reason"`
|
|
}
|
|
|
|
// PlayletResourceUseResp web端短剧媒资入库响应
|
|
type PlayletResourceUseResp struct {
|
|
Success []*PlayletResourceUseSuccess `json:"success"`
|
|
Failed []*PlayletResourceUseFailed `json:"failed"`
|
|
}
|