Documentation
¶
Index ¶
- type Config
- type Head
- type Limit
- type NewTag
- type OfficialVerify
- type Region
- type Show
- type ShowItem
- func (i *ShowItem) FromActivity(a *activity.Activity, now time.Time)
- func (i *ShowItem) FromArc(a *recommend.Arc)
- func (i *ShowItem) FromArcBangumi(a *recommend.Arc, sids map[int64]int64)
- func (i *ShowItem) FromArchivePB(a *api.Arc)
- func (i *ShowItem) FromArchivePBRank(a *api.Arc, scores map[int64]int64)
- func (i *ShowItem) FromBangumiArchivePB(a *api.Arc, season *seasongrpc.CardInfoProto, bangumiType int)
- func (i *ShowItem) FromTopic(a *activity.Activity)
- type SimilarTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ID int64 `json:"-"` Rid int64 `json:"-"` ScenesID int `json:"-"` ScenesName string `json:"scenes_name,omitempty"` ScenesType string `json:"scenes_type,omitempty"` }
func (*Config) ConfigChange ¶
func (c *Config) ConfigChange()
type Head ¶
type Head struct { CardID int `json:"card_id,omitempty"` Title string `json:"title,omitempty"` Cover string `json:"cover,omitempty"` Type string `json:"type,omitempty"` Date int64 `json:"date,omitempty"` Plat int8 `json:"-"` Build int `json:"-"` Condition string `json:"-"` URI string `json:"uri,omitempty"` Goto string `json:"goto,omitempty"` Param string `json:"param,omitempty"` Body []*ShowItem `json:"body,omitempty"` }
func (*Head) FillBuildURI ¶
type NewTag ¶
type NewTag struct { Position int `json:"pos"` Tag []*SimilarTag `json:"tag"` }
type OfficialVerify ¶
func (*OfficialVerify) FromOfficialVerify ¶
func (i *OfficialVerify) FromOfficialVerify(a accv1.OfficialInfo)
FromOfficialVerify from official
type Region ¶
type Region struct { ID int64 `json:"-"` Rid int `json:"tid"` Reid int `json:"reid"` Name string `json:"name"` Logo string `json:"logo"` Goto string `json:"goto"` Param string `json:"param"` Rank string `json:"-"` Plat int8 `json:"-"` Build int `json:"-"` Condition string `json:"-"` Area string `json:"-"` Language string `json:"-"` URI string `json:"uri,omitempty"` Islogo int8 `json:"-"` Rtype int8 `json:"type"` Entrance int8 `json:"-"` IsBangumi int8 `json:"is_bangumi,omitempty"` Children []*Region `json:"children,omitempty"` Config []*Config `json:"config,omitempty"` }
type Show ¶
type Show struct { Banner map[string][]*banner.Banner `json:"banner,omitempty"` Card []*Head `json:"card,omitempty"` Tag *tag.Tag `json:"tag,omitempty"` TopTag []*SimilarTag `json:"top_tag,omitempty"` NewTag *NewTag `json:"new_tag,omitempty"` Cbottom xtime.Time `json:"cbottom,omitempty"` Ctop xtime.Time `json:"ctop,omitempty"` Recommend []*ShowItem `json:"recommend,omitempty"` New []*ShowItem `json:"new"` Dynamic []*ShowItem `json:"dynamic,omitempty"` }
type ShowItem ¶
type ShowItem struct { Title string `json:"title"` Cover string `json:"cover"` URI string `json:"uri"` NewURI string `json:"-"` Param string `json:"param"` FirstCid int64 `json:"cid,omitempty"` Goto string `json:"goto"` // up Mid int64 `json:"mid,omitempty"` Name string `json:"name,omitempty"` Face string `json:"face,omitempty"` Follower int `json:"follower,omitempty"` Attribute int `json:"attribute,omitempty"` OfficialVerify *OfficialVerify `json:"official_verify,omitempty"` // stat Play int `json:"play,omitempty"` Danmaku int `json:"danmaku,omitempty"` Reply int `json:"reply,omitempty"` Fav int `json:"favourite,omitempty"` // movie and bangumi badge Status int8 `json:"status,omitempty"` CoverMark string `json:"cover_mark,omitempty"` // ranking Pts int64 `json:"pts,omitempty"` Children []*ShowItem `json:"children,omitempty"` // av PubDate xtime.Time `json:"pubdate"` // av stat Duration int64 `json:"duration,omitempty"` // region Rid int `json:"rid,omitempty"` Rname string `json:"rname,omitempty"` Reid int `json:"reid,omitempty"` //new manager Desc string `json:"desc,omitempty"` Stime string `json:"stime,omitempty"` Etime string `json:"etime,omitempty"` Like int `json:"like,omitempty"` RedirectURL string `json:"-"` UGCPay int32 `json:"ugc_pay,omitempty"` Cooperation string `json:"cooperation,omitempty"` }
func (*ShowItem) FromActivity ¶
FromActivity
func (*ShowItem) FromArcBangumi ¶
FromArcBangumi from recommend arc bangumi.
func (*ShowItem) FromArchivePB ¶
FromArchivePB from archive archive.
func (*ShowItem) FromArchivePBRank ¶
FromArchivePBRank from archive archive.
func (*ShowItem) FromBangumiArchivePB ¶
func (i *ShowItem) FromBangumiArchivePB(a *api.Arc, season *seasongrpc.CardInfoProto, bangumiType int)
FromBangumi from archive archive.
Click to show internal directories.
Click to hide internal directories.