Documentation ¶
Index ¶
- Constants
- type APKInfo
- type AbnorCids
- type AbnorVideo
- type AddEpIDResp
- type AddResp
- type ArcCore
- type ArcDB
- type ArcList
- type ArcListParam
- type ArcPager
- type ArcRes
- type ArcResPager
- type ArcType
- type Archive
- type AvailTps
- type Category
- type Channel
- type ChannelFmt
- type ChannelPager
- type CmsUpper
- type CmsUpperPager
- type CommonCat
- type Cond
- type CondV
- type Content
- type ContentDetail
- type ContentRepo
- type ContentRepoPager
- type Durl
- type EPRes
- type EPResDB
- type EPResItem
- type EPResultPager
- type EditUgcTime
- type EsArc
- type EsUgcConsult
- type EsUgcResult
- type IdxListReq
- type IdxPubReq
- type ImportResp
- type IntervListReq
- type IntervPubReq
- type LabelCore
- type LabelDB
- func (v *LabelDB) FromArcTp(tp *arccli.Tp, paramName string)
- func (v *LabelDB) FromPgcCond(value *CondV, cond *Cond, category int32)
- func (v *LabelDB) FromUgcTime(tm *UgcTime, paramName string)
- func (v *LabelDB) SameType(given *LabelDB) bool
- func (v LabelDB) TableName() string
- func (v *LabelDB) ToList() *LabelList
- type LabelList
- type MRecomMC
- type MangoAdd
- type MangoListResp
- type MangoRecom
- type ModCore
- type ModListReq
- type ModPub
- type ModPubReq
- type Modules
- type ModulesAddParam
- type ModulesList
- type OrderPageHelper
- type OutSearchInter
- type Page
- type PageCfg
- type Param
- type ParentCat
- type PgcCond
- type PgcCondResp
- type PlayurlResp
- type Product
- type PublishStatus
- type Rank
- type RankCore
- type RankError
- type RankList
- type RankListReq
- type RankPubReq
- type RegCore
- type RegDB
- type RegList
- type RemotePanel
- type ReqArcCons
- type ReqArcES
- type ReqChannel
- type ReqLabel
- type ReqMangoEdit
- type ReqUnshelve
- type ReqUpCms
- type ReqUpEdit
- type ReqVideoCons
- type RespUnshelve
- type RespUpAudit
- type SeaRepoCore
- type SeaRepoDB
- type SeaRepoList
- type SearInter
- type SearInterPager
- type SeasonRepoPager
- type SeasonRes
- type SeasonResDB
- type SeasonResItem
- type SeasonResultPager
- type SimpleArc
- type SimpleRank
- type SnCount
- type SupCats
- type TVEpContent
- type TVEpSeason
- type TpLabel
- type TransPager
- type TransReply
- type TransReq
- type TvPayOrder
- type TvPayOrderResp
- type TvPriceConfig
- type TvPriceConfigListResp
- type TvPriceConfigResp
- type TvUserChangeHistory
- type TvUserInfo
- type TvUserInfoResp
- type UPlayURLR
- type UTime
- type UgcCType
- type UgcTime
- type UgcType
- type UpMC
- type Upper
- type UpperPager
- type UpperR
- type Version
- type VersionPager
- type VersionUpdate
- type VersionUpdateDetail
- type VersionUpdateLimit
- type VersionUpdatePager
- type Video
- type VideoListPager
- type VideoListParam
- type VideoListQuery
- type VideoRes
- type VideoResPager
- type WaterMarkList
- type WaterMarkListPager
- type WaterMarkListParam
- type WaterMarkOne
- type Where
Constants ¶
const ( ParamTypeid = "typeid" ParamUgctime = "pubtime" UgcLabel = 2 PgcLabel = 1 )
label related params
const ( //ModulesNotDelete module not delete ModulesNotDelete = 0 //ModulesDelete module delete ModulesDelete = 1 //ModulesValid module is valid ModulesValid = 1 //ModulesPublishYes module is publish status in MC ModulesPublishYes = 1 //ModulesPublishNo module is not publish status in MC ModulesPublishNo = 0 //PageMain 主页 PageMain = 0 //PageJP 追番 PageJP = 1 //PageMovie 电影 PageMovie = 2 //PageDocumentary 纪录片 PageDocumentary = 3 //PageCN 国创 PageCN = 4 //PageSoapopera 电视剧 PageSoapopera = 5 //TypeSevenFocus 首页七格焦点图 TypeSevenFocus = 1 //TypeFiveFocus 5格焦点 TypeFiveFocus = 2 //TypeSixFocus 6格焦点 TypeSixFocus = 3 //TypeVertListFirst 竖图1列表 TypeVertListFirst = 4 //TypeVertListSecond 竖图2列表 TypeVertListSecond = 5 //TypeHorizList 横图列表 TypeHorizList = 6 //TypeZhuiFan 追番模块 TypeZhuiFan = 7 )
const ( //WatermarkWhite 水印白名单 WatermarkWhite = 1 //WatermarkDefault 水印默认值 WatermarkDefault = 0 //OrderDesc 降序 OrderDesc = 1 )
const (
RankIdxBase = 5 // index page intervention base, pgc=5+1, ugc=5+2
)
Tv_rank table related const params
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APKInfo ¶
type APKInfo struct { ID int64 `json:"id"` CDNAddr string `json:"cdn_addr"` CreatedAt time.Time `json:"created_at"` FileMd5 string `json:"file_md5"` InetAddr string `json:"inet_addr"` IsDeleted bool `json:"is_deleted"` IsGray bool `json:"is_gray"` LocalPath string `json:"local_path"` MappingAddr string `json:"mapping_addr"` SignMd5 string `json:"sign_md5"` Size int `json:"size"` UpdatedAt time.Time `json:"updated_at"` VersionCode int `json:"version_code"` VersionID string `json:"version_id"` VersionName string `json:"version_name"` }
APKInfo .
type AbnorCids ¶
type AbnorCids struct { CID int64 `json:"cid"` VideoTitle string `json:"video_title"` CTime string `json:"ctime"` AID int64 `json:"aid"` ArcTitle string `json:"arc_title"` PubTime string `json:"pub_time"` }
AbnorCids is the export format for abnormal cids
type AbnorVideo ¶
AbnorVideo def.
func (*AbnorVideo) ToCids ¶
func (v *AbnorVideo) ToCids(arc *Archive) *AbnorCids
ToCids transforms the archive & video to abnormal cid export structure
type AddEpIDResp ¶
AddEpIDResp is for function addEpID to return success and not exist and invalid values
type AddResp ¶
type AddResp struct { Succ []int64 `json:"succ"` // successfully added ids Exist []int64 `json:"exist"` // the ids already exist in our DB Invalids []int64 `json:"invalids"` // the invalid ids ( not exist in archives/uppers ) }
AddResp is for the response for adding archives/uppers
type ArcCore ¶
type ArcCore struct { ID string `json:"id"` CID string `json:"cid" gorm:"column:aid"` TypeID int32 `json:"typeid" gorm:"column:typeid"` Title string `json:"title"` Valid string `json:"valid" gorm:"column:valid"` Mtime time.Time `json:"mtime"` Content string `json:"content"` Cover string `json:"cover"` MID int64 `json:"mid" gorm:"column:mid"` }
ArcCore is the archive core struct
type ArcList ¶
type ArcList struct { ArcCore PTypeID int32 `json:"parent_typeid"` Pubdate string `json:"pubdate"` UpName string `json:"up_name"` }
ArcList def.
type ArcListParam ¶
type ArcListParam struct { ID string `form:"id" json:"id"` Title string `form:"title" json:"title"` CID string `form:"cid" json:"cid"` Typeid int32 `form:"typeid" json:"typeid"` Valid string `form:"valid" json:"valid"` Pid int32 `form:"pid" json:"-"` Order int `form:"order" json:"order" default:"2"` Mid int64 `form:"mid" json:"mid"` UpName string `form:"up_name"` PageCfg }
ArcListParam is archive list request params
type ArcRes ¶
type ArcRes struct { AVID int64 `json:"avid"` Title string `json:"title"` FirstCat string `json:"first_cat"` SecondCat string `json:"second_cat"` Status int `json:"status"` InjectTime string `json:"inject_time"` PubTime string `json:"pubtime"` Reason string `json:"reason"` }
ArcRes def.
type ArcResPager ¶
ArcResPager def.
type Archive ¶
type Archive struct { ID int `gorm:"column:id" json:"id"` AID int64 `gorm:"column:aid" json:"aid"` MID int `gorm:"column:mid" json:"mid"` TypeID int32 `gorm:"column:typeid" json:"typeid"` Videos int `gorm:"column:videos" json:"videos"` Title string `gorm:"column:title" json:"title"` Cover string `gorm:"column:cover" json:"cover"` Content string `gorm:"column:content" json:"content"` Duration int `gorm:"column:duration" json:"duration"` Copyright int `gorm:"column:copyright" json:"copyright"` Pubtime time.Time `gorm:"column:pubtime" json:"pubtime"` InjectTime time.Time `gorm:"column:inject_time" json:"inject_time"` Ctime time.Time `gorm:"column:ctime" json:"ctime"` Mtime time.Time `gorm:"column:mtime" json:"mtime"` State int `gorm:"column:state" json:"state"` Manual int `gorm:"column:manual" json:"manual"` Valid uint8 `gorm:"column:valid" json:"valid"` Submit uint8 `gorm:"column:submit" json:"submit"` Retry int `gorm:"column:retry" json:"retry"` Result uint8 `gorm:"column:result" json:"result"` Deleted uint8 `gorm:"column:deleted" json:"deleted"` Reason string `gorm:"column:reason" json:"reason"` }
Archive archive def. corresponding to our table structure
func (*Archive) ConsultRes ¶
ConsultRes transforms an archive to ArcRes
type Category ¶
type Category struct {
Pid, Name string
}
Category is for getting pid and name from archive category
type Channel ¶
type Channel struct { ID int64 `json:"id"` Title string `json:"title"` Desc string `json:"desc"` Splash string `json:"splash"` Deleted int8 `json:"deleted"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime_nb"` }
Channel represents the table TV_RANK
type ChannelFmt ¶
type ChannelFmt struct { ID int64 `json:"id"` Title string `json:"title"` Desc string `json:"desc"` Splash string `json:"splash"` Deleted int8 `json:"deleted"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime_nb,omitempty"` MtimeFormat string `json:"mtime"` }
ChannelFmt , mtimeFormat transforms the mtime timestamp
type ChannelPager ¶
type ChannelPager struct { TotalCount int64 `json:"total_count"` Pn int `json:"pn"` Ps int `json:"ps"` Items []*ChannelFmt `json:"items"` }
ChannelPager def.
type CmsUpper ¶
type CmsUpper struct { MID int64 `json:"mid" gorm:"column:mid"` Mtime time.Time `json:"-"` MtimeStr string `json:"mtime" gorm:"-"` CmsName string `json:"cms_name"` OriName string `json:"ori_name"` CmsFace string `json:"cms_face"` Valid int `json:"valid"` }
CmsUpper corresponds to the structure of upper for CMS in our DB
type CmsUpperPager ¶
CmsUpperPager is cms upper pager
type CommonCat ¶
type CommonCat struct { ID int32 `json:"id"` PID int32 `json:"pid"` Name string `json:"name"` Type int `json:"type"` }
CommonCat , PGC types or ugc second level types
type Content ¶
type Content struct { ID int64 `json:"id"` Title string `json:"title"` Subtitle string `json:"subtitle"` Desc string `json:"desc"` Cover string `json:"cover"` SeasonID int `json:"season_id"` CID int `json:"cid" gorm:"column:cid"` EPID int `json:"epid" gorm:"column:epid"` MenuID int `json:"menu_id"` State int `json:"state"` Valid int `json:"valid"` PayStatus int `json:"pay_status"` IsDeleted int `json:"is_deleted"` AuditTime int `json:"audit_time"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` InjectTime time.Time `json:"inject_time"` Reason string `json:"reason"` }
Content content def.
type ContentDetail ¶
type ContentDetail struct { ID int64 `json:"id"` Title string `json:"title"` Subtitle string `json:"subtitle"` Desc string `json:"desc"` Cover string `json:"cover"` SeasonID int `json:"season_id"` CID int `json:"cid" gorm:"column:cid"` EPID int `json:"epid" gorm:"column:epid"` MenuID int `json:"menu_id"` State int `json:"state"` Valid int `json:"valid"` PayStatus int `json:"pay_status"` IsDeleted int `json:"is_deleted"` AuditTime int `json:"audit_time"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` InjectTime time.Time `json:"inject_time"` Reason string `json:"reason"` Order int `json:"order"` }
ContentDetail def.
type ContentRepo ¶
type ContentRepo struct { ID int64 `json:"id"` Title string `json:"title"` Subtitle string `json:"subtitle"` Desc string `json:"desc"` Cover string `json:"cover"` SeasonID int `json:"season_id"` CID int `json:"cid" gorm:"column:cid"` EPID int `json:"epid" gorm:"column:epid"` MenuID int `json:"menu_id"` State int `json:"state"` Valid int `json:"valid"` PayStatus int `json:"pay_status"` IsDeleted int `json:"is_deleted"` AuditTime int `json:"audit_time"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime_nb,omitempty"` MtimeFormat string `json:"mtime"` InjectTime time.Time `json:"inject_time"` // InjectTimeFormat string `json:"inject_time"` Reason string `json:"reason"` SeasonTitle string `json:"season_title" gorm:"column:season_title"` Category int8 `json:"category" gorm:"column:category"` }
ContentRepo def.
type ContentRepoPager ¶
type ContentRepoPager struct { TotalCount int64 `json:"total_count"` Pn int `json:"pn"` Ps int `json:"ps"` Items []*ContentRepo `json:"items"` }
ContentRepoPager def.
type Durl ¶
type Durl struct { Order int `json:"order"` Length int `json:"length"` Size int `json:"size"` URL string `json:"url"` }
Durl def.
type EPRes ¶
type EPRes struct { ID int64 `json:"id"` Title string `json:"title"` Subtitle string `json:"subtitle"` STitle string `json:"season_title" gorm:"column:stitle"` Category int `json:"category"` SeasonID int `json:"season_id"` EPID int `json:"epid" gorm:"column:epid"` State int `json:"state"` Valid int `json:"valid"` Reason string `json:"reason"` }
EPRes def.
type EPResDB ¶
type EPResDB struct { EPRes InjectTime time.Time `json:"inject_time" gorm:"column:inject_time"` CTime time.Time `json:"ctime" gorm:"column:ctime"` }
EPResDB defines the result structure of ep audit
type EPResultPager ¶
EPResultPager def.
type EditUgcTime ¶
type EditUgcTime struct { ID int64 `form:"id" validate:"required"` Name string `form:"name" validate:"required"` UTime }
EditUgcTime def.
type EsArc ¶
type EsArc struct { AID int64 `json:"aid"` MID int64 `json:"mid"` Deleted int `json:"deleted"` Mtime string `json:"mtime"` Pubtime string `json:"pubtime"` Result int `json:"result"` Typeid int32 `json:"typeid"` Valid int `json:"valid"` }
EsArc def.
type EsUgcConsult ¶
type EsUgcConsult struct { Fields []string `json:"fields"` From string `json:"from"` Highlight bool `json:"highlight"` Pn int `json:"pn"` Ps int `json:"ps"` Where *Where `json:"where,omitempty"` Order []map[string]string `json:"order"` }
EsUgcConsult def.
type IdxListReq ¶
type IdxListReq struct { TypeID int64 `form:"type_id" validate:"required,min=1"` RankType int64 `form:"rank_type" validate:"required,min=1,max=2"` // 1=pgc, 2=ugc }
IdxListReq is index list request
type IdxPubReq ¶
type IdxPubReq struct { IdxListReq Intervs string `form:"intervs" validate:"required"` }
IdxPubReq is index publish request.
type ImportResp ¶
type ImportResp struct { NotExist []int64 `json:"not_exist"` // not existing uppers Succ []int64 `json:"succ"` // succesffuly updated ids }
ImportResp is for the response for import uppers' videos
type IntervListReq ¶
IntervListReq is common request for interv list.
func (*IntervListReq) BuildDB ¶
func (v *IntervListReq) BuildDB(db *gorm.DB) (newDB *gorm.DB)
BuildDB builds the db from the intervention request
func (*IntervListReq) FromIndex ¶
func (v *IntervListReq) FromIndex(idx *IdxListReq)
FromIndex builds the request with index params
func (*IntervListReq) FromMod ¶
func (v *IntervListReq) FromMod(mod *ModListReq)
FromMod builds the request with module params
func (*IntervListReq) FromRank ¶
func (v *IntervListReq) FromRank(rank *RankListReq)
FromRank builds the request with rank & category params
func (*IntervListReq) IsIdx ¶
func (v *IntervListReq) IsIdx() bool
IsIdx tells whether this request is from index
type IntervPubReq ¶
type IntervPubReq struct { IntervListReq Items []*SimpleRank }
IntervPubReq is common request for interv publish.
func (*IntervPubReq) FromIndex ¶
func (v *IntervPubReq) FromIndex(idx *IdxPubReq) (err error)
FromIndex def.
func (*IntervPubReq) FromMod ¶
func (v *IntervPubReq) FromMod(mod *ModPubReq) (err error)
FromMod builds the request with module params
func (*IntervPubReq) FromRank ¶
func (v *IntervPubReq) FromRank(rank *RankPubReq) (err error)
FromRank def.
type LabelCore ¶
type LabelCore struct { ID int64 `json:"id"` Name string `json:"name"` Param string `json:"param"` ParamName string `json:"param_name"` Value string `json:"value"` Category int32 `json:"category"` CatType int `json:"cat_type"` Valid int `json:"valid"` Position int `json:"position"` }
LabelCore is core of Label
type LabelDB ¶
LabelDB is the index label in DB
func (*LabelDB) FromPgcCond ¶
FromPgcCond def.
func (*LabelDB) FromUgcTime ¶
FromUgcTime def.
type LabelList ¶
type LabelList struct { LabelCore Mtime string `json:"mtime"` Stime string `json:"stime,omitempty"` Etime string `json:"etime,omitempty"` }
LabelList is used to list in TV CMS
type MangoListResp ¶
type MangoListResp struct { List []*MangoRecom `json:"list"` Pubtime string `json:"pubtime"` Message string `json:"message"` // 文案提示: rid, p213,u367 ... }
MangoListResp is the mango list response structure
type MangoRecom ¶
type MangoRecom struct { ID int64 `json:"id" gorm:"column:id"` RID int64 `json:"rid" gorm:"column:rid"` Rtype int `json:"rtype"` Title string `json:"title"` Cover string `json:"cover"` Category int `json:"category"` Playcount int64 `json:"playcount"` JID int64 `json:"jid" gorm:"column:jid"` Content string `json:"content"` Staff string `json:"staff"` Rorder int `json:"rorder"` }
MangoRecom is mango recom table structure
type ModCore ¶
type ModCore struct { Type string `json:"type" form:"type" validate:"required"` Source string `json:"source" form:"source" validate:"required"` SrcType int `json:"src_type" form:"src_type" validate:"required"` }
ModCore def.
type ModListReq ¶
type ModListReq struct {
ModuleID int64 `form:"module_id" validate:"required,min=1"`
}
ModListReq is mod list request
type ModPubReq ¶
type ModPubReq struct { ModListReq Intervs string `form:"intervs" validate:"required"` }
ModPubReq is mod publish request
type Modules ¶
type Modules struct { ID uint64 `json:"id"` PageID string `json:"page_id" form:"page_id" validate:"required"` Flexible string `json:"flexible" form:"flexible" validate:"required"` Icon string `json:"icon" form:"icon"` Title string `json:"title" form:"title" validate:"required"` Capacity uint64 `json:"capacity" form:"capacity" validate:"required"` More string `json:"more" form:"more" validate:"required"` Order uint8 `json:"order"` Moretype string `json:"moretype" form:"moretype"` Morepage int64 `json:"morepage" form:"morepage"` Deleted uint8 `json:"-"` Valid uint8 `json:"valid"` ModCore }
Modules is use for Modular
type ModulesAddParam ¶
type ModulesAddParam struct { ID uint64 `form:"id" validate:"required"` PageID string `form:"page_id" validate:"required"` Flexible string `form:"flexible" validate:"required"` Icon string `form:"icon"` Title string `form:"title" validate:"required"` Capacity uint64 `form:"capacity" validate:"required"` More string `form:"more" validate:"required"` Moretype string `json:"moretype" form:"moretype"` Morepage int64 `json:"morepage" form:"morepage"` Order uint8 ModCore }
ModulesAddParam is use for Modular add param
type ModulesList ¶
type ModulesList struct { Items []*Modules `json:"items"` PubState uint8 `json:"pubstate"` PubTime string `json:"pubtime"` }
ModulesList is used for function module list
type OrderPageHelper ¶
type OrderPageHelper struct { Items []*TvPayOrderResp `json:"items"` Total *int64 `json:"total"` }
OrderPageHelper is used to list in TV pay order list count
type OutSearchInter ¶
OutSearchInter output search intervene
type PageCfg ¶
type PageCfg struct { Pn int `form:"pn" default:"1" json:"pn"` Ps int `form:"ps" default:"20" json:"ps"` }
PageCfg def.
type Param ¶
type Param struct { Title string `form:"title"` PageID string `form:"page_id"` State string `form:"state"` }
Param .
type ParentCat ¶
type ParentCat struct { ID int32 `json:"id"` Name string `json:"name"` Type int `json:"type"` Children []*CommonCat `json:"children,omitempty"` }
ParentCat : ugc first level types
type PgcCondResp ¶
type PgcCondResp struct { Code int `json:"code"` Message string `json:"message"` Result *PgcCond `json:"result"` }
PgcCondResp is pgc condition response structure
type PlayurlResp ¶
type PlayurlResp struct { Code int `json:"code"` Message string `json:"message"` From string `json:"from"` Result string `json:"result"` Quality int `json:"quality"` Format string `json:"format"` Timelength int `json:"timelength"` AcceptFormat string `json:"accept_format"` AcceptQuality []int `json:"accept_quality"` SeekParam string `json:"seek_param"` SeekType string `json:"seek_type"` Durl []*Durl `json:"durl"` }
PlayurlResp is the response struct from Playurl API
type Product ¶
type Product struct { ID string `json:"id"` Description string `json:"description"` Title string `json:"title"` Price int64 `json:"price"` ComboPkgID string `json:"combo_pkg_id"` ComboDes string `json:"combo_des"` VideoType string `json:"video_type"` VodType string `json:"vod_type"` ProductDuration string `json:"product_duration"` Contract string `json:"contract"` SuitType int8 `json:"suit_type"` }
Product YST product
type PublishStatus ¶
PublishStatus search intervene publish status state 0-unPublish 1-publish
type Rank ¶
type Rank struct { Title string ModuleID int64 `gorm:"column:module_id"` Category int8 IsDeleted int8 Mtime time.Time RankCore }
Rank represents the table TV_RANK
func (*Rank) BeSimpleArc ¶
func (v *Rank) BeSimpleArc(arc *SimpleArc, translate tpParName) (res *SimpleRank)
BeSimpleArc def.
func (*Rank) BeSimpleSn ¶
func (v *Rank) BeSimpleSn(sn *TVEpSeason, translate catName) *SimpleRank
BeSimpleSn def.
type RankCore ¶
type RankCore struct { Rank int64 `json:"rank"` ID int64 `json:"id"` ContID int64 `json:"cid" gorm:"column:cont_id"` ContType int `json:"cont_type"` Position int `json:"position"` }
RankCore def
type RankList ¶
type RankList struct {
List []*SimpleRank `json:"list"`
}
RankList is the output format for intervention list
type RankListReq ¶
type RankListReq struct { Rank int64 `form:"rank" validate:"min=0"` Category int64 `form:"category" validate:"required,min=1"` }
RankListReq is rank list request
type RankPubReq ¶
type RankPubReq struct { RankListReq Intervs string `form:"intervs" validate:"required"` }
RankPubReq is rank publish request
type RegCore ¶
type RegCore struct { ID int `json:"id" form:"id"` PageID int `json:"page_id" form:"page_id"` Title string `json:"title" form:"title"` Valid int `json:"valid" form:"valid"` IndexType int `json:"index_type" form:"index_type"` IndexTid int `json:"index_tid" form:"index_tid"` Deleted int `json:"deleted" form:"deleted"` Rank int `json:"rank"` }
RegCore .
type RemotePanel ¶
type RemotePanel struct { Product []Product `json:"data"` Result struct { ResultCode string `json:"result_code"` ResultMsg string `json:"result_msg"` } `json:"result"` }
RemotePanel YST product res
type ReqArcCons ¶
type ReqArcCons struct { Order int `form:"order" json:"order;Min(1)" default:"1"` // 1 default, desc; 2 asc FirstCat int32 `form:"first_cat"` SecondCat int32 `form:"second_cat"` Status string `form:"status"` Title string `form:"title"` AVID int64 `form:"avid"` Pn int `form:"pn" default:"1"` }
ReqArcCons def.
type ReqArcES ¶
type ReqArcES struct { AID string Mids []int64 Title string Typeids []int32 Valid string Result string MtimeOrder string PubtimeOrder string PageCfg }
ReqArcES def.
func (*ReqArcES) FromArcListParam ¶
func (v *ReqArcES) FromArcListParam(param *ArcListParam, tids []int32)
FromArcListParam build
func (*ReqArcES) FromAuditConsult ¶
func (v *ReqArcES) FromAuditConsult(param *ReqArcCons, tids []int32)
FromAuditConsult def.
type ReqChannel ¶
type ReqChannel struct { Page int `form:"page" default:"1"` Order int `form:"order" default:"1"` // 1=desc,2=asc Title string `form:"title"` // english name, precise search Desc string `form:"desc"` // chinese name, fuzzy search }
ReqChannel def.
type ReqLabel ¶
type ReqLabel struct { Category int `form:"category" validate:"required"` Param string `form:"param" validate:"required"` // pubtime for time labels, typeid for type labels Title string `form:"title"` ID int `form:"id"` }
ReqLabel def.
type ReqMangoEdit ¶
type ReqMangoEdit struct { ID int64 `form:"id" validate:"required"` Title string `form:"title" validate:"required"` Cover string `form:"cover" validate:"required"` Playcount int64 `form:"playcount"` JID int64 `form:"jid"` Content string `form:"content" validate:"required"` Staff string `form:"staff"` }
ReqMangoEdit is the request for mango edit
type ReqUnshelve ¶
type ReqUnshelve struct { IDs []int64 `form:"ids,split" validate:"required,min=1,dive,gt=0"` Type int `form:"type" validate:"required,min=1,max=4"` }
ReqUnshelve is request for unshelve
type ReqUpCms ¶
type ReqUpCms struct { Order int `form:"order" validate:"required,min=3,max=4" default:"3"` // 3 = mtime Desc, 4 = mtime Asc Pn int `form:"pn" default:"1"` Name string `form:"name"` MID int64 `form:"mid"` Valid string `form:"valid"` // 0 = offline, 1 = online }
ReqUpCms is the request structure of upcmsList
type ReqUpEdit ¶
type ReqUpEdit struct { MID int64 `form:"mid" validate:"required"` Name string `form:"name" validate:"required"` Face string `form:"face" validate:"required"` }
ReqUpEdit is the request of up edit function
type ReqVideoCons ¶
type ReqVideoCons struct { AVID int64 `form:"avid" validate:"required"` Order int `form:"order" json:"order;Min(1)" default:"1"` // 1 default, desc; 2 asc Title string `form:"title"` CID int64 `form:"cid"` Status string `form:"status"` Pn int `form:"pn"` }
ReqVideoCons def.
type RespUnshelve ¶
RespUnshelve is response for unshelve
type RespUpAudit ¶
RespUpAudit is the response of up audit function
type SeaRepoCore ¶
type SeaRepoCore struct { ID int64 `json:"id" params:"id"` OriginName string `json:"origin_name" params:"origin_name"` Title string `json:"title" params:"title"` Alias string `json:"alias" params:"alias"` Category int8 `json:"category" params:"category"` Desc string `json:"desc" params:"desc"` Style string `json:"style" params:"style"` Area string `json:"area" params:"area"` Info int8 `json:"info" params:"info"` State int8 `json:"state" params:"state"` TotalNum int32 `json:"total_num" params:"total_num"` Upinfo string `json:"upinfo" params:"upinfo"` Staff string `json:"staff" params:"staff"` Role string `json:"role" params:"role"` Copyright string `json:"copyright" params:"copyright"` Cover string `json:"cover" params:"cover" gorm:"column:cover"` Check int8 `json:"check"` IsDeleted int8 `json:"is_deleted"` AuditTime int `json:"audit_time"` Ctime time.Time `json:"ctime"` Valid int8 `json:"valid"` InjectTime time.Time `json:"inject_time"` Reason string `json:"reason"` }
SeaRepoCore def.
type SeaRepoDB ¶
type SeaRepoDB struct { SeaRepoCore PlayTime time.Time `gorm:"column:play_time"` Mtime time.Time `json:"mtime"` }
SeaRepoDB def.
func (*SeaRepoDB) ToList ¶
func (v *SeaRepoDB) ToList() (list *SeaRepoList)
ToList transforms a SeaRepoDB to list, time transformation
type SeaRepoList ¶
type SeaRepoList struct { SeaRepoCore Mtime string `json:"mtime"` Pubdate string `json:"pubdate"` }
SeaRepoList def.
type SearInter ¶
type SearInter struct { ID int64 `json:"id" params:"id"` Searchword string `json:"searchword" params:"searchword"` Rank int64 `json:"rank" params:"rank"` Tag string `json:"tag" params:"tag"` Deleted int8 `json:"deleted"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
SearInter reprensents the search intervene
type SearInterPager ¶
type SearInterPager struct { TotalCount int `json:"total_count"` Pn int `json:"pn"` Ps int `json:"ps"` Items []*SearInter `json:"items"` PubState int8 PubTime string }
SearInterPager search intervene pager
type SeasonRepoPager ¶
type SeasonRepoPager struct { TotalCount int64 `json:"total_count"` Pn int `json:"pn"` Ps int `json:"ps"` Items []*SeaRepoList `json:"items"` }
SeasonRepoPager def.
type SeasonRes ¶
type SeasonRes struct { ID int64 `json:"id"` Title string `json:"title"` Check int `json:"check"` Category int `json:"category"` Valid int `json:"valid"` Reason string `json:"reason"` }
SeasonRes def.
type SeasonResDB ¶
type SeasonResDB struct { SeasonRes InjectTime time.Time `json:"inject_time" gorm:"column:inject_time"` CTime time.Time `json:"ctime" gorm:"column:ctime"` }
SeasonResDB defines the result structure of ep audit
func (*SeasonResDB) ToItem ¶
func (v *SeasonResDB) ToItem() *SeasonResItem
ToItem Transforms to item
type SeasonResItem ¶
type SeasonResItem struct { SeasonRes InjectTime string `json:"inject_time"` CTime string `json:"ctime"` }
SeasonResItem def.
type SeasonResultPager ¶
type SeasonResultPager struct { Items []*SeasonResItem `json:"items"` Page *Page `json:"page"` }
SeasonResultPager def.
type SimpleArc ¶
type SimpleArc struct { ID int `gorm:"column:id"` AID int64 `gorm:"column:aid"` MID int `gorm:"column:mid"` TypeID int32 `gorm:"column:typeid"` Title string Content string Cover string Deleted int Result int Valid int Mtime time.Time Pubtime time.Time }
SimpleArc is the simple struct of archive
type SimpleRank ¶
type SimpleRank struct { Title string `json:"title"` Source int `json:"source"` SourceName string `json:"source_name"` Mtime string `json:"mtime"` Pubdate string `json:"pubdate"` RankCore }
SimpleRank represents the table TV_RANK, but with only necessary fields for the front-end
func (SimpleRank) BeComplete ¶
func (c SimpleRank) BeComplete(req *IntervPubReq, title string, position int) (res *Rank)
BeComplete transforms a simpleRank to Complete rank in order to create it in DB
type TVEpContent ¶
type TVEpContent struct { ID int64 `form:"id" params:"id" validate:"required"` CID int `form:"cid" params:"cid" gorm:"column:cid" validate:"required"` SeasonID int64 `form:"season_id" params:"season_id" validate:"required"` Title string `form:"title" params:"title"` LongTitle string `form:"long_title" params:"long_title"` Cover string `form:"cover" params:"cover"` Length int32 `form:"length" params:"length"` Order int `form:"order" params:"order" validate:"required"` PayStatus int `form:"pay_status" validate:"required" gorm:"-"` Desc string `form:"desc" gorm:"-"` IsDeleted int8 Ctime time.Time Mtime time.Time }
TVEpContent reprensents the content table
func (*TVEpContent) TableName ¶
func (*TVEpContent) TableName() string
TableName gives the table name of content
func (*TVEpContent) ToContent ¶
func (epc *TVEpContent) ToContent(isInit bool) (res *Content)
ToContent transforms an ep to content object
type TVEpSeason ¶
type TVEpSeason struct { ID int64 `form:"id" json:"id" params:"id" validate:"required" gorm:"column:id"` OriginName string `form:"origin_name" json:"origin_name" params:"origin_name" validate:"required"` Title string `form:"title" json:"title" params:"title"` Alias string `form:"alias" json:"alias" params:"alias"` Category int `form:"category" json:"category" params:"category" validate:"required" gorm:"column:category"` Desc string `form:"desc" json:"desc" params:"desc"` Style string `form:"style" json:"style" params:"style"` Area string `form:"area" json:"area" params:"area"` PlayTime time.Time `form:"play_time" json:"play_time" params:"play_time" validate:"required"` Info int `form:"info" json:"info" params:"info" validate:"required"` State string `form:"state" json:"state" validate:"required" params:"state"` TotalNum string `form:"total_num" json:"total_num" params:"total_num" validate:"required"` Upinfo string `form:"upinfo" json:"upinfo" params:"upinfo"` Staff string `form:"staff" json:"staff" params:"staff"` Role string `form:"role" json:"role" params:"role"` Copyright string `form:"copyright" json:"copyright" params:"copyright"` Cover string `form:"cover" json:"cover" params:"cover" gorm:"column:cover"` Check int `json:"check"` IsDeleted int `json:"is_deleted"` AuditTime int `json:"audit_time"` Valid int `json:"valid"` Reason string `json:"reason"` Version string `json:"version" form:"version"` // v1.13 new fields, movie, OVA or normal Producer string `json:"producer" form:"producer"` // v1.13 new fields, BBC, CCTV etc AliasSearch string `json:"alias_search" form:"alias_search"` Brief string `json:"brief" form:"brief"` Status string `json:"status" form:"status"` }
TVEpSeason represents the season table
func (*TVEpSeason) TableName ¶
func (*TVEpSeason) TableName() string
TableName gives the table name of season
type TpLabel ¶
type TpLabel struct { Category int `json:"-"` Param string `json:"param"` ParamName string `json:"param_name"` }
TpLabel def.
type TransPager ¶
type TransPager struct { Items []*TransReply `json:"items"` Page *Page `json:"page"` CountSn int `json:"count_sn"` }
TransPager is used for return items and pager info
type TransReply ¶
type TransReply struct { EpID int64 `json:"epid"` SeasonID int64 `json:"season_id"` Category string `json:"category"` Etitle string `json:"etitle"` Stitle string `json:"stitle"` Transcoded int `json:"transcoded"` ApplyTime string `json:"apply_time"` MarkTime string `json:"mark_time"` }
TransReply is the response for transList
type TransReq ¶
type TransReq struct { Order int `form:"order" default:"1"` // 1=desc,2=asc EpID int64 `form:"epid"` SeasonID int64 `form:"season_id"` Title string `form:"title"` Category int `form:"category" validate:"min=0,max=5"` Status string `form:"status"` Pn int `form:"pn" default:"1"` }
TransReq is the request for transcode consulting
type TvPayOrder ¶
type TvPayOrder struct { ID int64 `json:"id"` OrderNo string `json:"order_no"` Platform int8 `json:"platform"` OrderType int8 `json:"order_type"` ActiveType int8 `json:"active_type"` MID int64 `json:"mid" gorm:"column:mid"` BuyMonths int8 `json:"buy_months"` ProductID string `json:"product_id"` Money int64 `json:"money"` Quantity int64 `json:"quantity"` RefundAmount int64 `json:"refund_amount"` Status int8 `json:"status"` ThirdTradeNO string `json:"third_trade_no"` PaymentMoney int64 `json:"payment_money"` PaymentType string `json:"payment_type"` PaymentTime time.Time `json:"payment_time"` Ver int64 `json:"ver"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
TvPayOrder is table struct
type TvPayOrderResp ¶
type TvPayOrderResp struct { ID int64 `json:"id"` OrderNo string `json:"order_no"` OrderType int8 `json:"order_type"` ActiveType int8 `json:"active_type"` MID int64 `json:"mid" form:"mid" gorm:"column:mid"` BuyMonths int8 `json:"buy_months"` ProductID string `json:"product_id"` Money int64 `json:"money"` Quantity int64 `json:"quantity"` RefundAmount int64 `json:"refund_amount"` Status int8 `json:"status"` ThirdTradeNO string `json:"third_trade_no"` PaymentMoney int64 `json:"payment_money"` PaymentType string `json:"payment_type"` PaymentTime time.Time `json:"payment_time"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
TvPayOrderResp is used to list in TV pay order list
type TvPriceConfig ¶
type TvPriceConfig struct { ID int64 `form:"id" json:"id"` PID int64 `form:"pid" json:"pid" gorm:"column:pid"` Platform int8 `form:"platform" json:"platform" validate:"required"` ProductName string `form:"product_name" validate:"required" json:"product_name"` ProductID string `form:"product_id" validate:"required" json:"product_id"` SuitType int8 `form:"suit_type" json:"suit_type" ` Month int64 `form:"month" json:"month"` SubType int8 `form:"sub_type" json:"sub_type" ` Price int64 `form:"price" json:"price"` Selected int8 `form:"selected" json:"selected"` Remark string `form:"remark" json:"remark"` Status int8 `form:"status" json:"status"` Superscript string `form:"superscript" json:"superscript"` Operator string `form:"operator" json:"operator"` OperId int64 `form:"oper_id" json:"oper_id"` Stime time.Time `form:"stime" json:"stime"` Etime time.Time `form:"etime" json:"etime"` Mtime time.Time `json:"mtime"` }
TvPriceConfig is tv vip pay order
func (*TvPriceConfig) TableName ¶
func (*TvPriceConfig) TableName() string
TableName tv_price_config
type TvPriceConfigListResp ¶
type TvPriceConfigListResp struct { ID int64 `form:"id" json:"id"` PID int64 `form:"pid" json:"pid" gorm:"column:pid"` ProductName string `form:"product_name" json:"product_name"` ProductID string `form:"product_id" json:"product_id"` SuitType int8 `form:"suit_type" json:"suit_type"` Month int64 `form:"month" json:"month"` SubType int8 `form:"sub_type" json:"sub_type"` Price int64 `form:"price" json:"price"` OriginPrice int64 `form:"original_price" json:"original_price"` Selected int8 `form:"selected" json:"selected"` Status int8 `form:"status" json:"status"` Operator string `form:"operator" json:"operator"` OperId int64 `form:"oper_id" json:"oper_id"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
TvPriceConfigListResp is used to list in TV panel list
func (*TvPriceConfigListResp) TableName ¶
func (*TvPriceConfigListResp) TableName() string
TableName tv_price_config
type TvPriceConfigResp ¶
type TvPriceConfigResp struct { ID int64 `form:"id" json:"id"` PID int64 `form:"pid" json:"pid" gorm:"column:pid"` ProductName string `form:"product_name" json:"product_name"` ProductID string `form:"product_id" json:"product_id"` SuitType int8 `form:"suit_type" json:"suit_type"` Month int64 `form:"month" json:"month"` SubType int8 `form:"sub_type" json:"sub_type"` Price int64 `form:"price" json:"price"` OriginPrice int64 `form:"original_price" json:"original_price"` Selected int8 `form:"selected" json:"selected"` Remark string `form:"remark" json:"remark"` Status int8 `form:"status" json:"status"` Superscript string `form:"superscript" json:"superscript"` Operator string `form:"operator" json:"operator"` OperId int64 `form:"oper_id" json:"oper_id"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` Items []TvPriceConfig `json:"item"` }
TvPriceConfigResp is used show panel info
type TvUserChangeHistory ¶
type TvUserChangeHistory struct { ID int64 `json:"id"` MID int64 `json:"mid"` ChangeType int8 `json:"change_type"` ChangeTime time.Time `json:"change_time"` Days int64 `json:"days"` OperatorId string `json:"operator_id"` Remark string `json:"remark"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
TvUserChangeHistory is table struct
type TvUserInfo ¶
type TvUserInfo struct { ID int64 `json:"id"` MID int64 `json:"mid" gorm:"column:mid"` Ver int64 `json:"ver"` VipType int8 `json:"vip_type"` PayType int8 `json:"pay_type"` PayChannelID string `json:"pay_channel_id"` Status int8 `json:"status"` OverdueTime time.Time `json:"overdue_time"` RecentPayTime time.Time `json:"recent_pay_time"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
TvUserInfo is table struct
type TvUserInfoResp ¶
type TvUserInfoResp struct { ID int64 `json:"id"` MID int64 `json:"mid" gorm:"column:mid"` VipType int8 `json:"vip_type"` PayType int8 `json:"pay_type"` PayChannelID string `json:"pay_channel_id"` Status int8 `json:"status"` OverdueTime time.Time `json:"overdue_time"` RecentPayTime time.Time `json:"recent_pay_time"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
TvUserInfoResp is used to user info
func (*TvUserInfoResp) TableName ¶
func (t *TvUserInfoResp) TableName() string
TableName tv_user_info
type UPlayURLR ¶
type UPlayURLR struct { Code uint64 `json:"code"` Result string `json:"result"` Message string `json:"message"` From string `json:"from"` Quality int `json:"quality"` Format string `json:"format"` Timelength int `json:"timelength"` AcceptFormat string `json:"accept_format"` AcceptDescription []string `json:"accept_description"` AcceptQuality []int `json:"accept_quality"` AcceptWatermark []bool `json:"accept_watermark"` VideoCodecid int `json:"video_codecid"` VideoProject bool `json:"video_project"` SeekParam string `json:"seek_param"` SeekType string `json:"seek_type"` Durl []struct { Order int `json:"order"` Length int `json:"length"` Size int `json:"size"` Ahead string `json:"ahead"` Vhead string `json:"vhead"` URL string `json:"url"` } `json:"durl"` }
UPlayURLR ugc play url response
type UTime ¶
type UTime struct { Stime int64 `form:"stime" validate:"required" json:"stime"` Etime int64 `form:"etime" validate:"required" json:"etime"` }
UTime is used for storage in DB by json
type UgcTime ¶
type UgcTime struct { UTime Category int32 `form:"category" validate:"required"` Name string `form:"name" validate:"required"` }
UgcTime is used to add time labels for ugc
type UgcType ¶
type UgcType struct { ID int32 `json:"id"` Name string `json:"name"` Children []UgcCType `json:"children"` }
UgcType ugc archive category typelist
type UpMC ¶
type UpMC struct { ID int MID int64 `gorm:"column:mid"` Toinit int Submit int // 1=need report OriName string `gorm:"column:ori_name"` // original name CMSName string `gorm:"column:cms_name"` // cms intervened name OriFace string `gorm:"column:ori_face"` // original face CMSFace string `gorm:"column:cms_face"` // cms intervened face Valid int // auth info: 1=online,0=hidden Deleted int }
UpMC is upper info in MC
type Upper ¶
type Upper struct { ID int `json:"id"` MID int64 `json:"mid" gorm:"column:mid"` State int `json:"state"` Toinit int `json:"toinit"` Retry int `json:"retry"` Deleted int `json:"deleted"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
Upper corresponds to the structure of upper in our DB
type UpperPager ¶
UpperPager def.
type UpperR ¶
type UpperR struct { MID int64 `json:"mid"` State int `json:"state"` Name string `json:"name"` Ctime string `json:"ctime"` Mtime string `json:"mtime"` }
UpperR corresponds to the structure of upper to show in front-end
type Version ¶
type Version struct { ID int64 `json:"id"` Plat int8 `json:"plat"` Description string `json:"description"` Version string `json:"version"` Build int `json:"build"` State int8 `json:"state"` Ptime time.Time `json:"ptime"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
Version .
type VersionPager ¶
type VersionPager struct { TotalCount int64 `json:"total_count"` Pn int `json:"pn"` Ps int `json:"ps"` Items []*Version `json:"items"` }
VersionPager def.
type VersionUpdate ¶
type VersionUpdate struct { ID int64 `json:"id"` VID int `json:"vid" gorm:"column:vid"` Channel string `json:"channel"` Coverage int32 `json:"coverage"` Size int `json:"size"` URL string `json:"url" gorm:"column:url"` Md5 string `json:"md5"` State int8 `json:"state"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` Sdkint int `json:"sdkint"` Model string `json:"model"` Policy int8 `json:"policy"` IsForce int8 `json:"is_force"` PolicyName string `json:"policy_name"` IsPush int8 `json:"is_push"` }
VersionUpdate .
type VersionUpdateDetail ¶
type VersionUpdateDetail struct { *VersionUpdate VerLimit []*VersionUpdateLimit `json:"ver_limit"` }
VersionUpdateDetail .
type VersionUpdateLimit ¶
type VersionUpdateLimit struct { ID int64 `json:"id"` UPID int32 `json:"up_id" gorm:"column:up_id"` Condi string `json:"condi"` Value int `json:"value"` }
VersionUpdateLimit .
func (VersionUpdateLimit) TableName ¶
func (l VersionUpdateLimit) TableName() string
TableName version_update_limit
type VersionUpdatePager ¶
type VersionUpdatePager struct { TotalCount int64 `json:"total_count"` Pn int `json:"pn"` Ps int `json:"ps"` Items map[string]interface{} `json:"items"` }
VersionUpdatePager def.
type Video ¶
type Video struct { ID int `gorm:"column:id" json:"id"` AID int `gorm:"column:aid" json:"aid"` Eptitle string `gorm:"column:eptitle" json:"eptitle"` Description string `gorm:"column:description" json:"description"` CID int64 `gorm:"column:cid" json:"cid"` Duration int `gorm:"column:duration" json:"duration"` IndexOrder int `gorm:"column:duration" json:"index_order"` Ctime time.Time `gorm:"column:ctime" json:"ctime"` Mtime time.Time `gorm:"column:mtime" json:"mtime"` InjectTime time.Time `gorm:"column:inject_time" json:"inject_time"` Valid uint8 `gorm:"column:valid" json:"valid"` Submit uint8 `gorm:"column:submit" json:"submit"` Retry int `gorm:"column:retry" json:"retry"` Result int `gorm:"column:result" json:"result"` Deleted uint8 `gorm:"column:deleted" json:"deleted"` State int `gorm:"column:state" json:"state"` Reason string `gorm:"column:reason" json:"reason"` Manual int `gorm:"column:manual" json:"manual"` }
Video is used from PGC video
func (*Video) ConsultRes ¶
ConsultRes transforms an video to VideoRes
type VideoListPager ¶
type VideoListPager struct { Items []*VideoListQuery `json:"items"` Page *Page `json:"page"` }
VideoListPager is used by video list function to return result and page info
type VideoListParam ¶
type VideoListParam struct { CID string `form:"cid" json:"cid"` VID string `form:"vid" json:"vid"` Typeid int16 `form:"typeid" json:"typeid"` Pid int32 `form:"pid" json:"-"` Valid string `form:"valid" json:"valid"` Order int `form:"order" json:"order" default:"2"` Pn int `form:"pn" json:"pn" default:"1"` Ps int `form:"ps" json:"ps" default:"20"` }
VideoListParam is used for vlideolist funtion param valid
type VideoListQuery ¶
type VideoListQuery struct { ID string `json:"id"` VID string `json:"vid" gorm:"column:cid"` CID string `json:"cid" gorm:"column:aid"` Eptitle string `json:"eptitle"` Valid string `json:"valid" gorm:"column:valid"` Mtime time.Time `json:"mtime"` SeasonTitle string `json:"season_title" gorm:"column:title"` TypeID int32 `json:"typeid" gorm:"column:typeid"` PTypeID int32 `json:"parent_typeid"` Page int `json:"page" gorm:"column:index_order"` }
VideoListQuery is used for selecting the field of pgc video
type VideoRes ¶
type VideoRes struct { CID int64 `json:"cid"` Title string `json:"title"` Page int `json:"page"` Status int `json:"status"` Ctime string `json:"ctime"` InjectTime string `json:"inject_time"` Reason string `json:"reason"` }
VideoRes def.
type VideoResPager ¶
VideoResPager def.
type WaterMarkList ¶
type WaterMarkList struct { ID string `form:"id" json:"id"` Epid string `form:"epid" json:"epid"` SeasonID string `form:"season_id" json:"season_id"` Category string `form:"category" json:"category"` SeasonTitle string `form:"season_title" json:"season_title"` ContentTitle string `form:"content_title" json:"content_title"` MarkTime time.Time `form:"mark_time" json:"mark_time"` }
WaterMarkList def.
func (WaterMarkList) TableName ¶
func (a WaterMarkList) TableName() string
TableName select watermark list
type WaterMarkListPager ¶
type WaterMarkListPager struct { Items []*WaterMarkList `json:"items"` Page *Page `json:"page"` }
WaterMarkListPager is used for return items and pager info
type WaterMarkListParam ¶
type WaterMarkListParam struct { Order uint8 `form:"id" json:"order" default:"1"` EpID string `form:"epid" json:"epid"` SeasonID string `form:"season_id" json:"season_id"` Category string `form:"category" json:"category"` Pn int `form:"pn" json:"pn;Min(1)" default:"1"` Ps int `form:"ps" json:"ps;Min(1)" default:"20"` }
WaterMarkListParam is use for watermarklist function query param valid
type WaterMarkOne ¶
type WaterMarkOne struct { ID string `form:"id" json:"id"` Mark uint8 `form:"mark" json:"mark"` MarkTime string `form:"mark_time" json:"mark_time"` }
WaterMarkOne is used for only selecting some field from gorm query
func (WaterMarkOne) TableName ¶
func (a WaterMarkOne) TableName() string
TableName only select watermark one