You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
153 lines
7.6 KiB
153 lines
7.6 KiB
package v1
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"xgit.pub/st52/xcore/dto"
|
|
)
|
|
|
|
// GetListReq 获取视频列表请求
|
|
type GetListReq struct {
|
|
g.Meta `path:"/video/list" method:"post" summary:"获取视频列表" tags:"视频"`
|
|
Title string `json:"title" description:"标题"`
|
|
CategoryIdList []uint `json:"category_id_list" description:"分类 ID"`
|
|
Lock string `json:"lock" description:"锁定"`
|
|
IsEnd string `json:"is_end" description:"完结"`
|
|
Copyright string `json:"copyright" description:"版权"`
|
|
Year uint `json:"year" description:"年份"`
|
|
Actor string `json:"actor" description:"演员"`
|
|
Director string `json:"director" description:"导演"`
|
|
Writer string `json:"writer" description:"编剧"`
|
|
dto.PageReq
|
|
}
|
|
|
|
// GetListRes 获取视频列表响应
|
|
type GetListRes struct {
|
|
dto.PageRes
|
|
}
|
|
|
|
// CreateReq 创建视频请求
|
|
type CreateReq struct {
|
|
g.Meta `path:"/video/add" method:"post" summary:"创建视频" tags:"视频"`
|
|
CollectId int `json:"collect_id" description:"站点" `
|
|
Title string `json:"title" description:"标题"`
|
|
TitleSub string `json:"title_sub" description:"副标"`
|
|
Letter string `json:"letter" description:"首字母"`
|
|
Tag string `json:"tag" description:"TAG"`
|
|
Color string `json:"color" description:"颜色"`
|
|
Lock uint `json:"lock" description:"锁定"`
|
|
Copyright uint `json:"copyright" description:"版权"`
|
|
IsEnd uint `json:"is_end" description:"完结"`
|
|
Status uint `json:"status" description:"状态"`
|
|
CategoryId uint `json:"category_id" description:"分类"`
|
|
Pic string `json:"pic" description:"图片"`
|
|
PicThumb string `json:"pic_thumb" description:"缩略图"`
|
|
PicSlide string `json:"pic_slide" description:"轮播"`
|
|
PicScreenshot string `json:"pic_screenshot" description:"截图"`
|
|
Actor string `json:"actor" description:"演员"`
|
|
Director string `json:"director" description:"导演"`
|
|
Writer string `json:"writer" description:"编剧"`
|
|
Remarks string `json:"remarks" description:"备注"`
|
|
Pubdate string `json:"pubdate" description:"发布时间"`
|
|
Total int `json:"total" description:"总集数"`
|
|
Serial string `json:"serial" description:"连载数"`
|
|
Duration string `json:"duration" description:"视频时长"`
|
|
Tv string `json:"tv" description:"电视频道"`
|
|
Weekday string `json:"weekday" description:"节目周期"`
|
|
Class string `json:"class" description:"扩展分类"`
|
|
Area string `json:"area" description:"地区"`
|
|
Lang string `json:"lang" description:"语言"`
|
|
Jumpurl string `json:"jumpurl" description:"跳转URL"`
|
|
Version string `json:"version" description:"资源版本"`
|
|
Year int `json:"year" description:"年份"`
|
|
State string `json:"state" description:"资源类别"`
|
|
DoubanScore float64 `json:"douban_score" description:"豆瓣评分"`
|
|
DoubanId int `json:"douban_id" description:"豆瓣ID"`
|
|
Up int `json:"up" description:"顶"`
|
|
Down int `json:"down" description:"踩"`
|
|
Hits int `json:"hits" description:"人气"`
|
|
HitsMonth int `json:"hits_month" description:"月人气"`
|
|
HitsWeek int `json:"hits_week" description:"周人气"`
|
|
HitsDay int `json:"hits_day" description:"天人气"`
|
|
}
|
|
|
|
// CreateRes 创建视频响应
|
|
type CreateRes struct{}
|
|
|
|
// UpdateReq 更新视频请求
|
|
type UpdateReq struct {
|
|
g.Meta `path:"/video/update" method:"post" summary:"更新视频" tags:"视频"`
|
|
Id uint `json:"id" description:""`
|
|
CollectId int `json:"collect_id" description:"站点" `
|
|
Title string `json:"title" description:"标题"`
|
|
TitleSub string `json:"title_sub" description:"副标"`
|
|
Letter string `json:"letter" description:"首字母"`
|
|
Tag string `json:"tag" description:"TAG"`
|
|
Color string `json:"color" description:"颜色"`
|
|
Lock uint `json:"lock" description:"锁定"`
|
|
Copyright uint `json:"copyright" description:"版权"`
|
|
IsEnd uint `json:"is_end" description:"完结"`
|
|
Status uint `json:"status" description:"状态"`
|
|
CategoryId uint `json:"category_id" description:"分类"`
|
|
Pic string `json:"pic" description:"图片"`
|
|
PicId string `json:"pic_id" description:"图片编号"`
|
|
PicLocal string `json:"pic_local" description:""`
|
|
PicThumb string `json:"pic_thumb" description:"缩略图"`
|
|
PicSlide string `json:"pic_slide" description:"轮播"`
|
|
PicScreenshot string `json:"pic_screenshot" description:"截图"`
|
|
Actor string `json:"actor" description:"演员"`
|
|
Director string `json:"director" description:"导演"`
|
|
Writer string `json:"writer" description:"编剧"`
|
|
Remarks string `json:"remarks" description:"备注"`
|
|
Pubdate string `json:"pubdate" description:"发布时间"`
|
|
Total int `json:"total" description:"总集数"`
|
|
Serial string `json:"serial" description:"连载数"`
|
|
Duration string `json:"duration" description:"视频时长"`
|
|
Tv string `json:"tv" description:"电视频道"`
|
|
Weekday string `json:"weekday" description:"节目周期"`
|
|
Class string `json:"class" description:"扩展分类"`
|
|
Area string `json:"area" description:"地区"`
|
|
Lang string `json:"lang" description:"语言"`
|
|
Jumpurl string `json:"jumpurl" description:"跳转URL"`
|
|
Version string `json:"version" description:"资源版本"`
|
|
Year int `json:"year" description:"年份"`
|
|
State string `json:"state" description:"资源类别"`
|
|
DoubanScore float64 `json:"douban_score" description:"豆瓣评分"`
|
|
DoubanId int `json:"douban_id" description:"豆瓣ID"`
|
|
Up int `json:"up" description:"顶"`
|
|
Down int `json:"down" description:"踩"`
|
|
Hits int `json:"hits" description:"人气"`
|
|
HitsMonth int `json:"hits_month" description:"月人气"`
|
|
HitsWeek int `json:"hits_week" description:"周人气"`
|
|
HitsDay int `json:"hits_day" description:"天人气"`
|
|
}
|
|
|
|
// UpdateRes 更新视频响应
|
|
type UpdateRes struct{}
|
|
|
|
// DeleteReq 删除视频请求
|
|
type DeleteReq struct {
|
|
g.Meta `path:"/video/delete" method:"post" summary:"删除视频" tags:"视频"`
|
|
Id uint `json:"id" description:"视频ID"`
|
|
}
|
|
|
|
// DeleteRes 删除视频响应
|
|
type DeleteRes struct{}
|
|
|
|
// BatchDeleteReq 批量删除视频请求
|
|
type BatchDeleteReq struct {
|
|
g.Meta `path:"/video/batch/delete" method:"post" summary:"批量删除视频" tags:"视频"`
|
|
Ids []uint `json:"ids" description:"视频ID数组"`
|
|
}
|
|
|
|
// BatchDeleteRes 批量删除视频响应
|
|
type BatchDeleteRes struct{}
|
|
|
|
// GetReq 获取视频请求
|
|
type GetReq struct {
|
|
g.Meta `path:"/video/get" method:"post" summary:"获取视频" tags:"视频"`
|
|
Id uint `json:"id" description:"视频ID"`
|
|
}
|
|
|
|
// GetRes 获取视频响应
|
|
type GetRes struct {
|
|
}
|