Documentation ¶
Index ¶
- func PgcCat(cat int) (category string)
- func PickSids(resps []*RespSid) (sids []int64)
- type DBeiPage
- type DBeiSeason
- type MangoArc
- type MangoArcPage
- type MangoEP
- type MangoEpPage
- type MangoOrder
- type MangoParams
- type MangoRecom
- type MangoSn
- type MangoSnPage
- type MangoVideo
- type MangoVideoPage
- type ReqDBeiPages
- type ReqPageID
- type RespSid
- type VideoCMS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBeiPage ¶
type DBeiPage struct { List []*DBeiSeason `json:"list"` Pager *model.IdxPager `json:"pager"` }
DBeiPage is the dangbei page struct
type DBeiSeason ¶
type DBeiSeason struct { SeasonID *int64 `json:"cid,omitempty"` Cover string `json:"cover"` Desc string `json:"desc"` Title string `json:"title"` UpInfo string `json:"upinfo"` Category string `json:"category"` // - cn, jp, movie, tv, documentary Area string `json:"area"` // - cn, jp, others Playtime string `json:"play_time"` Role string `json:"role"` Staff string `json:"staff"` NewestOrder int `json:"newest_order"` // the newest passed ep's order NewestNB int `json:"newest_nb"` TotalNum int `json:"total_num"` Style string `json:"style"` Paystatus string `json:"pay_status"` // paid or not Official string `json:"official"` // is official or preview }
DBeiSeason is the dangbei season struct
type MangoArc ¶
type MangoArc struct { AVID int64 `json:"avid"` Cover string `json:"cover"` Desc string `json:"desc"` Title string `json:"title"` PlayTime string `json:"play_time"` Category1 string `json:"category_1"` Category2 string `json:"category_2"` Autorised bool `json:"autorised"` Mtime time.Time `json:"mtime"` }
MangoArc is mango archive structure
type MangoArcPage ¶
MangoArcPage is mango arc page structure
type MangoEP ¶
type MangoEP struct { model.EpCMS SeasonID int64 `json:"sid"` Autorised bool `json:"autorised"` Mtime time.Time `json:"mtime"` }
MangoEP is mango ep structure
type MangoEpPage ¶
type MangoEpPage struct { SeasonID int64 `json:"sid"` List []*MangoEP `json:"list"` Pager *model.IdxPager `json:"pager"` }
MangoEpPage is mango ep page structure
type MangoParams ¶
type MangoParams struct { JumpParam string `json:"jump_param"` // combine Title string `json:"title"` Cover string `json:"cover"` Playcount int64 `json:"play_count"` Category string `json:"category"` // transform to CN Desc string `json:"desc"` Staff string `json:"staff"` Role string `json:"role"` // from DB PlayTime string `json:"play_time"` // from DB }
MangoParams is the output structure for mango recom api
type MangoRecom ¶
type MangoRecom struct { ID int64 `json:"id"` RID int64 `json:"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"` Content string `json:"content"` Staff string `json:"staff"` Rorder int `json:"rorder"` Mtime time.Time `json:"-"` }
MangoRecom is mango recom table structure
func (*MangoRecom) ToParam ¶
func (m *MangoRecom) ToParam() *MangoParams
ToParam transforms an MangoRecom from DB to MangoParam for mango OS
type MangoSn ¶
type MangoSn struct { SID int64 `json:"sid"` DBeiSeason OriginName string `json:"origin_name"` Alias string `json:"alias"` Autorised bool `json:"autorised"` Mtime time.Time `json:"mtime"` EpCover string `json:"ep_cover"` }
MangoSn is the plus version of Dangbei Season
type MangoSnPage ¶
MangoSnPage is mango sn page structure
type MangoVideo ¶
type MangoVideo struct { CID int64 `json:"cid"` Page int `json:"page"` Desc string `json:"desc"` Title string `json:"title"` Duration int64 `json:"duration"` Autorised bool `json:"autorised"` Mtime time.Time `json:"mtime"` }
MangoVideo is mango video structure
type MangoVideoPage ¶
type MangoVideoPage struct { AVID int64 `json:"avid"` List []*MangoVideo `json:"list"` Pager *model.IdxPager `json:"pager"` }
MangoVideoPage is mango video page structure
type ReqDBeiPages ¶
ReqDBeiPages is request for dangbei pages
Click to show internal directories.
Click to hide internal directories.