Documentation
¶
Index ¶
- Constants
- type Asset
- type Audio
- type BnjItem
- type BnjList
- type BnjMain
- type BnjPastReview
- type BnjView
- type Button
- type CM
- type CMConfig
- type Contribution
- type Dislike
- type History
- type Meta
- type NewRelateRec
- type OwnerExt
- type Page
- type PlayerIcon
- type Relate
- func (r *Relate) FromAv(a *api.Arc, from, trackid string, ap *archive.PlayerInfo, cooperation bool)
- func (r *Relate) FromBangumi(ban *v1.CardInfoProto)
- func (r *Relate) FromCM(ad *ad.AdInfo)
- func (r *Relate) FromGame(i *game.Info, from string)
- func (r *Relate) FromOperate(i *NewRelateRec, a *api.Arc, info *game.Info, sp *special.Card, from string, ...)
- func (r *Relate) FromOperateOld(i *manager.Relate, a *api.Arc, info *game.Info, sp *special.Card, from string, ...)
- func (r *Relate) FromSpecial(sp *special.Card, from string)
- type ReqUser
- type Staff
- type TripleParam
- type TripleRes
- type Videoshot
- type View
- type ViewStatic
- type VipPlayURL
Constants ¶
View Source
const ( VIPActiveView = 1 VIPActivePGC = 2 VIPActiveCenter = 3 )
vip active subID.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Audio ¶
type Audio struct { Title string `json:"title"` Cover string `json:"cover_url"` SongID int `json:"song_id"` Play int `json:"play_count"` Reply int `json:"reply_count"` UpperID int `json:"upper_id"` Entrance string `json:"entrance"` SongAttr int `json:"song_attr"` }
Audio struct
type BnjItem ¶
type BnjItem struct { Aid int64 `json:"aid"` Cid int64 `json:"cid"` Tid int32 `json:"tid"` Pic string `json:"pic"` Copyright int32 `json:"copyright"` PubDate xtime.Time `json:"pubdate"` IsAd int `json:"is_ad"` Title string `json:"title"` Desc string `json:"desc,omitempty"` Stat archive.Stat3 `json:"stat,omitempty"` Duration int64 `json:"duration,omitempty"` Author archive.Author3 `json:"owner,omitempty"` Dimension archive.Dimension `json:"dimension,omitempty"` ReqUser *ReqUser `json:"req_user,omitempty"` Pages []*Page `json:"pages,omitempty"` Rights archive.Rights3 `json:"rights"` }
BnjItem is
type BnjMain ¶
type BnjMain struct { *archive.Archive3 // now user ReqUser *ReqUser `json:"req_user,omitempty"` Pages []*Page `json:"pages,omitempty"` Elec *elec.Info `json:"elec,omitempty"` Relates []*BnjItem `json:"relates"` // player_icon PlayerIcon *PlayerIcon `json:"player_icon,omitempty"` ElecBigText string `json:"elec_big_text"` ElecSmallText string `json:"elec_small_text"` }
BnjMain is
type BnjPastReview ¶
type BnjPastReview struct { AID int64 `json:"aid"` Img string `json:"img"` Title string `json:"title"` }
BnjPastReview struct
type BnjView ¶
type BnjView struct { BeginTime int64 `json:"begin_time"` *api.Arc // owner_ext OwnerExt OwnerExt `json:"owner_ext"` // now user ReqUser *ReqUser `json:"req_user,omitempty"` LiveRoom struct { ID int64 `json:"id"` DmServer string `json:"dm_server"` DmPort int64 `json:"dm_port"` Title string `json:"title"` Uname string `json:"uname"` Cover string `json:"cover"` } `json:"live_room"` Pages []*Page `json:"pages,omitempty"` Elec *elec.Info `json:"elec,omitempty"` Stat *api.Stat `json:"stat,omitempty"` Lottery struct { ActID int64 `json:"act_id"` Times int64 `json:"times"` Rule string `json:"rule"` List []string `json:"list"` Winners []string `json:"winners"` } `json:"lottery"` Relates []*act.Relate `json:"relates"` PastReviews []*BnjPastReview `json:"past_review"` }
BnjView 2018
type CM ¶
type CM struct { RequestID string `json:"request_id,omitempty"` RscID int64 `json:"rsc_id,omitempty"` SrcID int64 `json:"src_id,omitempty"` IsAdLoc bool `json:"is_ad_loc,omitempty"` IsAd bool `json:"is_ad,omitempty"` CmMark int `json:"cm_mark,omitempty"` ClientIP string `json:"client_ip,omitempty"` Index int `json:"index,omitempty"` AdInfo *ad.AdInfo `json:"ad_info,omitempty"` }
CM struct
type CMConfig ¶
type CMConfig struct { AdsControl json.RawMessage `json:"ads_control,omitempty"` MonitorInfo json.RawMessage `json:"monitor_info,omitempty"` }
CMConfig struct
type Contribution ¶
type Contribution struct { Aid int64 `json:"aid,omitempty"` Pic string `json:"pic,omitempty"` Title string `json:"title,omitempty"` Author api.Author `json:"owner,omitempty"` Stat api.Stat `json:"stat,omitempty"` CTime xtime.Time `json:"ctime,omitempty"` }
Contribution struct
type Meta ¶
type Meta struct { Quality int `json:"quality"` Format string `json:"format"` Size int64 `json:"size"` }
Meta struct
type NewRelateRec ¶
type NewRelateRec struct { TrackID string `json:"trackid"` Oid int64 `json:"id"` Source string `json:"source"` AvFeature json.RawMessage `json:"av_feature"` Goto string `json:"goto"` Title string `json:"title"` IsDalao int8 `json:"is_dalao"` RcmdReason struct { Content string `json:"content"` } `json:"rcmd_reason"` }
NewRelateRec struct
type OwnerExt ¶
type OwnerExt struct { OfficialVerify struct { Type int `json:"type"` Desc string `json:"desc"` } `json:"official_verify,omitempty"` Live *live.Live `json:"live,omitempty"` Vip struct { Type int `json:"vipType"` DueDate int64 `json:"vipDueDate"` DueRemark string `json:"dueRemark"` AccessStatus int `json:"accessStatus"` VipStatus int `json:"vipStatus"` VipStatusWarn string `json:"vipStatusWarn"` } `json:"vip"` Assists []int64 `json:"assists"` Fans int `json:"fans"` Archives int `json:"-"` }
OwnerExt struct
type Page ¶
type Page struct { *archive.Page3 Metas []*Meta `json:"metas"` DMLink string `json:"dmlink"` Audio *Audio `json:"audio,omitempty"` DM *dm2.SubjectInfo `json:"dm,omitempty"` }
Page struct
type PlayerIcon ¶
type PlayerIcon struct { URL1 string `json:"url1,omitempty"` Hash1 string `json:"hash1,omitempty"` URL2 string `json:"url2,omitempty"` Hash2 string `json:"hash2,omitempty"` CTime xtime.Time `json:"ctime,omitempty"` }
PlayerIcon struct
type Relate ¶
type Relate struct { Aid int64 `json:"aid,omitempty"` Pic string `json:"pic,omitempty"` Title string `json:"title,omitempty"` Author *api.Author `json:"owner,omitempty"` Stat api.Stat `json:"stat,omitempty"` Duration int64 `json:"duration,omitempty"` Goto string `json:"goto,omitempty"` Param string `json:"param,omitempty"` URI string `json:"uri,omitempty"` Rating float64 `json:"rating,omitempty"` Reserve string `json:"reserve,omitempty"` From string `json:"from,omitempty"` Desc string `json:"desc,omitempty"` RcmdReason string `json:"rcmd_reason,omitempty"` Badge string `json:"badge,omitempty"` Cid int64 `json:"cid,omitempty"` SeasonType int32 `json:"season_type,omitempty"` RatingCount int32 `json:"rating_count,omitempty"` // cm ad AdIndex int `json:"ad_index,omitempty"` CmMark int `json:"cm_mark,omitempty"` SrcID int64 `json:"src_id,omitempty"` RequestID string `json:"request_id,omitempty"` CreativeID int64 `json:"creative_id,omitempty"` CreativeType int64 `json:"creative_type,omitempty"` Type int `json:"type,omitempty"` Cover string `json:"cover,omitempty"` ButtonTitle string `json:"button_title,omitempty"` View int `json:"view,omitempty"` Danmaku int `json:"danmaku,omitempty"` IsAd bool `json:"is_ad,omitempty"` IsAdLoc bool `json:"is_ad_loc,omitempty"` AdCb string `json:"ad_cb,omitempty"` ShowURL string `json:"show_url,omitempty"` ClickURL string `json:"click_url,omitempty"` ClientIP string `json:"client_ip,omitempty"` Extra json.RawMessage `json:"extra,omitempty"` Button *Button `json:"button,omitempty"` CardIndex int `json:"card_index,omitempty"` Source string `json:"-"` AvFeature json.RawMessage `json:"-"` TrackID string `json:"trackid"` }
Relate struct
func (*Relate) FromOperate ¶
func (r *Relate) FromOperate(i *NewRelateRec, a *api.Arc, info *game.Info, sp *special.Card, from string, cooperation bool)
FromOperate func
type ReqUser ¶
type ReqUser struct { Attention int `json:"attention"` Favorite int8 `json:"favorite"` Like int8 `json:"like"` Dislike int8 `json:"dislike"` Coin int8 `json:"coin"` }
ReqUser struct
type Staff ¶
type Staff struct { Mid int64 `json:"mid,omitempty"` Title string `json:"title,omitempty"` Face string `json:"face,omitempty"` Name string `json:"name,omitempty"` OfficialVerify struct { Type int `json:"type"` Desc string `json:"desc"` } `json:"official_verify"` Vip struct { Type int `json:"vipType"` DueDate int64 `json:"vipDueDate"` DueRemark string `json:"dueRemark"` AccessStatus int `json:"accessStatus"` VipStatus int `json:"vipStatus"` VipStatusWarn string `json:"vipStatusWarn"` } `json:"vip"` Attention int `json:"attention"` }
Staff from cooperation
type TripleParam ¶
type TripleParam struct { MobiApp string `form:"mobi_app"` Build string `form:"build"` AID int64 `form:"aid"` Ak string `form:"access_key"` From string `form:"from"` }
TripleParam struct
type TripleRes ¶
type TripleRes struct { Like bool `json:"like"` Coin bool `json:"coin"` Fav bool `json:"fav"` Prompt bool `json:"prompt"` Multiply int64 `json:"multiply"` UpID int64 `json:"-"` Anticheat bool `json:"-"` }
TripleRes struct
type View ¶
type View struct { *ViewStatic // owner_ext OwnerExt OwnerExt `json:"owner_ext"` // now user ReqUser *ReqUser `json:"req_user,omitempty"` // tag info Tag []*tag.Tag `json:"tag,omitempty"` // movie Movie *bangumi.Movie `json:"movie,omitempty"` // bangumi Season *bangumi.Season `json:"season,omitempty"` // bp Bp json.RawMessage `json:"bp,omitempty"` // elec Elec *elec.Info `json:"elec,omitempty"` // history History *History `json:"history,omitempty"` // audio Audio *Audio `json:"audio,omitempty"` // contribute data Contributions []*Contribution `json:"contributions,omitempty"` // relate data Relates []*Relate `json:"relates,omitempty"` ReturnCode string `json:"-"` UserFeature string `json:"-"` IsRec int8 `json:"-"` // dislike reason Dislikes []*Dislike `json:"dislike_reasons,omitempty"` // dm DMSeg int `json:"dm_seg,omitempty"` // paster Paster *resmdl.Paster `json:"paster,omitempty"` // player_icon PlayerIcon *PlayerIcon `json:"player_icon,omitempty"` // vip_active VIPActive string `json:"vip_active,omitempty"` // cm CMs []*CM `json:"cms,omitempty"` // cm config CMConfig *CMConfig `json:"cm_config,omitempty"` // asset Asset *Asset `json:"asset,omitempty"` ActivityURL string `json:"activity_url,omitempty"` Bgm []*creative.Bgm `json:"bgm,omitempty"` Staff []*Staff `json:"staff,omitempty"` }
View struct
type ViewStatic ¶
ViewStatic struct
Click to show internal directories.
Click to hide internal directories.