Documentation ¶
Index ¶
- type Active
- type Actives
- type Button
- type Card
- func (c *Card) From(cardGoto model.CardGt, id int64, tid int64, plat int8, build int)
- func (c *Card) FromActive(o *Active)
- func (c *Card) FromActiveBanner(os []*Active, hash string)
- func (c *Card) FromAdAv(o *cm.AdInfo)
- func (c *Card) FromBanner(os []*banner.Banner, hash string)
- func (c *Card) FromCardSet(o *CardSet)
- func (c *Card) FromConverge(o *Converge)
- func (c *Card) FromDownload(o *Download)
- func (c *Card) FromEventTopic(o *EventTopic)
- func (c *Card) FromFollow(o *Follow)
- func (c *Card) FromFollowMode(title, desc string, button []string)
- func (c *Card) FromLogin(o int64)
- func (c *Card) FromRank(os []*rank.Rank)
- func (c *Card) FromSpecial(o *Special)
- func (c *Card) FromSwitch(sw model.Switch)
- func (c *Card) FromTopstick(o *Special)
- type CardItem
- type CardItems
- type CardSet
- type Converge
- type Download
- type EventTopic
- type Follow
- type Menu
- type Special
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Active ¶
type Active struct { ID int64 `json:"id,omitempty"` ParentID int64 `json:"parent_id,omitempty"` Name string `json:"name,omitempty"` Background string `json:"background,omitempty"` Type string `json:"type,omitempty"` Content json.RawMessage `json:"content,omitempty"` // Extra Pid int64 `json:"pid,omitempty"` Title string `json:"title,omitempty"` Subtitle string `json:"subtitle,omitempty"` Desc string `json:"desc,omitempty"` Param string `json:"param,omitempty"` Goto model.Gt `json:"goto,omitempty"` Cover string `json:"cover,omitempty"` Limit int `json:"limit,omitempty"` Items []*Active `json:"items,omitempty"` }
type Card ¶
type Card struct { Plat int8 `json:"plat,omitempty"` Build int `json:"build,omitempty"` ID int64 `json:"id,omitempty"` Param string `json:"param,omitempty"` CardGoto model.CardGt `json:"card_goto,omitempty"` Goto model.Gt `json:"goto,omitempty"` URI string `json:"uri,omitempty"` Title string `json:"title,omitempty"` Desc string `json:"desc,omitempty"` Cover string `json:"cover,omitempty"` Coverm map[model.ColumnStatus]string `json:"coverm,omitempty"` Avatar string `json:"avatar,omitempty"` Download int32 `json:"download,omitempty"` Badge string `json:"badge,omitempty"` Ratio int `json:"ratio,omitempty"` Score int32 `json:"score,omitempty"` Tid int64 `json:"tid,omitempty"` Subtitle string `json:"subtitle,omitempty"` Limit int `json:"limit,omitempty"` Items []*Card `json:"items,omitempty"` AdInfo *cm.AdInfo `json:"ad_info,omitempty"` Banner []*banner.Banner `json:"banner,omitempty"` Hash string `json:"verson,omitempty"` TrackID string `json:"trackid,omitempty"` FromType string `json:"from_type,omitempty"` ShowUGCPay bool `json:"show_ucg_pay,omitempty"` Switch model.Switch `json:"switch,omitempty"` SwitchLike model.Switch `json:"switch_like,omitempty"` Buttons []*Button `json:"buttons,omitempty"` }
func (*Card) FromActive ¶
func (*Card) FromActiveBanner ¶
func (*Card) FromCardSet ¶
func (*Card) FromConverge ¶
func (*Card) FromDownload ¶
func (*Card) FromEventTopic ¶
func (c *Card) FromEventTopic(o *EventTopic)
func (*Card) FromFollow ¶
func (*Card) FromFollowMode ¶
func (*Card) FromSpecial ¶
func (*Card) FromSwitch ¶
func (*Card) FromTopstick ¶
type Converge ¶
type Converge struct { ID int64 `json:"id,omitempty"` ReType int `json:"re_type,omitempty"` ReValue string `json:"re_value,omitempty"` Title string `json:"title,omitempty"` Cover string `json:"cover,omitempty"` Content json.RawMessage `json:"content,omitempty"` // extra Items []*Converge `json:"contents,omitempty"` Goto model.Gt `json:"goto,omitempty"` Pid int64 `json:"pid,omitempty"` Param string `json:"param,omitempty"` URI string `json:"uri,omitempty"` }
type Download ¶
type Download struct { ID int64 `json:"id,omitempty"` Title string `json:"title,omitempty"` Desc string `json:"desc,omitempty"` Icon string `json:"icon,omitempty"` Cover string `json:"cover,omitempty"` URLType int `json:"url_type,omitempty"` URLValue string `json:"url_value,omitempty"` BtnTxt int `json:"btn_txt,omitempty"` ReType int `json:"re_type,omitempty"` ReValue string `json:"re_value,omitempty"` DoubleCover string `json:"double_cover,omitempty"` Number int32 `json:"number,omitempty"` // extra ButtonText string `json:"button_text,omitempty"` Goto model.Gt `json:"goto,omitempty"` Param string `json:"param,omitempty"` }
type EventTopic ¶
type Follow ¶
type Follow struct { ID int64 `json:"id,omitempty"` Type string `json:"type,omitempty"` Title string `json:"title,omitempty"` Content json.RawMessage `json:"content,omitempty"` // extra Items []*Follow `json:"items,omitempty"` Goto model.Gt `json:"goto,omitempty"` Pid int64 `json:"pid,omitempty"` Tid int64 `json:"tid,omitempty"` }
type Menu ¶
type Menu struct { TabID int64 `json:"tab_id,omitempty"` Name string `json:"name,omitempty"` Img string `json:"img,omitempty"` Icon string `json:"icon,omitempty"` Color string `json:"color,omitempty"` ID int64 `json:"id,omitempty"` Plat int `json:"-"` CType int `json:"-"` CValue string `json:"-"` PlatVersion json.RawMessage `json:"-"` STime xtime.Time `json:"-"` ETime xtime.Time `json:"-"` Status int `json:"-"` Badge string `json:"-"` Versions map[int8][]*Version `json:"-"` }
type Special ¶
type Special struct { ID int64 `json:"id,omitempty"` Title string `json:"title,omitempty"` Desc string `json:"desc,omitempty"` Cover string `json:"cover,omitempty"` SingleCover string `json:"single_cover,omitempty"` ReType int `json:"re_type,omitempty"` ReValue string `json:"re_value,omitempty"` Badge string `json:"badge,omitempty"` Size string `json:"size,omitempty"` // extra Ratio int `json:"ratio,omitempty"` Goto model.Gt `json:"goto,omitempty"` Param string `json:"param,omitempty"` Pid int64 `json:"pid,omitempty"` }
Click to show internal directories.
Click to hide internal directories.