|
|
@ -0,0 +1,51 @@ |
|
|
|
package v1 |
|
|
|
|
|
|
|
import "github.com/gogf/gf/v2/frame/g" |
|
|
|
|
|
|
|
// CreateReq 创建视频请求
|
|
|
|
type CreateReq struct { |
|
|
|
g.Meta `path:"/api/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{} |