card

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TopBottomRcmdReason

func TopBottomRcmdReason(r *ai.RcmdReason, isAtten int8, cardm map[int64]*account.Card) (topRcmdReason, bottomRcomdReason string)

TopBottomRcmdReason is

Types

type Args

type Args struct {
	Type   int8   `json:"type,omitempty"`
	UpID   int64  `json:"up_id,omitempty"`
	UpName string `json:"up_name,omitempty"`
	Rid    int32  `json:"rid,omitempty"`
	Rname  string `json:"rname,omitempty"`
	Tid    int64  `json:"tid,omitempty"`
	Tname  string `json:"tname,omitempty"`
}

Args is

type Avatar

type Avatar struct {
	Cover string      `json:"cover,omitempty"`
	Text  string      `json:"text,omitempty"`
	URI   string      `json:"uri,omitempty"`
	Type  model.Type  `json:"type,omitempty"`
	Event model.Event `json:"event,omitempty"`
}

Avatar is

type AvatarStatus

type AvatarStatus struct {
	Cover string
	Text  string
	Goto  model.Gt
	Param string
	Type  model.Type
}

AvatarStatus is

type Banner struct {
	*Base
	Hash       string           `json:"hash,omitempty"`
	BannerItem []*banner.Banner `json:"banner_item,omitempty"`
}

func (*Banner) From

func (c *Banner) From(main interface{}, op *operate.Card)

func (*Banner) Get

func (c *Banner) Get() *Base

type Base

type Base struct {
	CardType   model.CardType           `json:"card_type,omitempty"`
	CardGoto   model.CardGt             `json:"card_goto,omitempty"`
	Goto       model.Gt                 `json:"goto,omitempty"`
	Param      string                   `json:"param,omitempty"`
	Cover      string                   `json:"cover,omitempty"`
	Title      string                   `json:"title,omitempty"`
	URI        string                   `json:"uri,omitempty"`
	DescButton *Button                  `json:"desc_button,omitempty"`
	ThreePoint *ThreePoint              `json:"three_point,omitempty"`
	Args       Args                     `json:"args,omitempty"`
	PlayerArgs *PlayerArgs              `json:"player_args,omitempty"`
	Idx        int64                    `json:"idx,omitempty"`
	AdInfo     *cm.AdInfo               `json:"ad_info,omitempty"`
	Right      bool                     `json:"-"`
	Rcmd       *ai.Item                 `json:"-"`
	Tagm       map[int64]*tag.Tag       `json:"-"`
	IsAttenm   map[int64]int8           `json:"-"`
	Statm      map[int64]*relation.Stat `json:"-"`
	Cardm      map[int64]*account.Card  `json:"-"`
	CardLen    int                      `json:"-"`
	Columnm    model.ColumnStatus       `json:"-"`
	FromType   string                   `json:"from_type,omitempty"`
}

Base is

func (*Base) TabThreePointWatchLater

func (c *Base) TabThreePointWatchLater()

TabThreePointWatchLater is

func (*Base) ThreePointChannel

func (c *Base) ThreePointChannel()

ThreePointChannel is

func (*Base) ThreePointFrom

func (c *Base) ThreePointFrom()

ThreePointFrom is

func (*Base) ThreePointWatchLater

func (c *Base) ThreePointWatchLater()

ThreePointWatchLater is

type Button

type Button struct {
	Text     string      `json:"text,omitempty"`
	Param    string      `json:"param,omitempty"`
	URI      string      `json:"uri,omitempty"`
	Event    model.Event `json:"event,omitempty"`
	Selected int8        `json:"selected,omitempty"`
	Type     model.Type  `json:"type,omitempty"`
}

Button is

type ButtonStatus

type ButtonStatus struct {
	Text    string
	Goto    model.Gt
	Param   string
	IsAtten int8
	Type    model.Type
	Event   model.Event
}

ButtonStatus is

type ChannelSquare

type ChannelSquare struct {
	*Base
	Desc1 string               `json:"desc_1,omitempty"`
	Desc2 string               `json:"desc_2,omitempty"`
	Item  []*ChannelSquareItem `json:"item,omitempty"`
}

func (*ChannelSquare) From

func (c *ChannelSquare) From(main interface{}, op *operate.Card)

From ChannelSquare op:channel--av对应关系, main:av map, c.base.tagm:tag map

func (*ChannelSquare) Get

func (c *ChannelSquare) Get() *Base

type ChannelSquareItem

type ChannelSquareItem struct {
	Title          string     `json:"title,omitempty"`
	Cover          string     `json:"cover,omitempty"`
	URI            string     `json:"uri,omitempty"`
	Param          string     `json:"param,omitempty"`
	Goto           string     `json:"goto,omitempty"`
	CoverLeftText1 string     `json:"cover_left_text_1,omitempty"`
	CoverLeftIcon1 model.Icon `json:"cover_left_icon_1,omitempty"`
	CoverLeftText2 string     `json:"cover_left_text_2,omitempty"`
	CoverLeftIcon2 model.Icon `json:"cover_left_icon_2,omitempty"`
	CoverLeftText3 string     `json:"cover_left_text_3,omitempty"`
	FromType       string     `json:"from_type"`
}

type CoverOnly

type CoverOnly struct {
	*Base
}

func (*CoverOnly) From

func (c *CoverOnly) From(main interface{}, op *operate.Card)

func (*CoverOnly) Get

func (c *CoverOnly) Get() *Base

type DislikeReason

type DislikeReason struct {
	ID   int64  `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

DislikeReason is

type DynamicHot

type DynamicHot struct {
	*Base
	TopLeftTitle       string       `json:"top_left_title,omitempty"`
	Desc1              string       `json:"desc1,omitempty"`
	Desc2              string       `json:"desc2,omitempty"`
	MoreURI            string       `json:"more_uri,omitempty"`
	MoreText           string       `json:"more_text,omitempty"`
	Covers             []string     `json:"covers,omitempty"`
	CoverRightText     string       `json:"cover_right_text,omitempty"`
	TopRcmdReasonStyle *ReasonStyle `json:"top_rcmd_reason_style,omitempty"`
}

func (*DynamicHot) From

func (c *DynamicHot) From(main interface{}, op *operate.Card)

func (*DynamicHot) Get

func (c *DynamicHot) Get() *Base

type Feedback

type Feedback struct {
	ID   int64  `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

Feedback is

type FourItemV3

type FourItemV3 struct {
	*Base
	TitleIcon   model.Icon        `json:"title_icon,omitempty"`
	BannerCover string            `json:"banner_cover,omitempty"`
	BannerURI   string            `json:"banner_uri,omitempty"`
	MoreURI     string            `json:"more_uri,omitempty"`
	MoreText    string            `json:"more_text,omitempty"`
	Items       []*FourItemV3Item `json:"items,omitempty"`
}

func (*FourItemV3) From

func (c *FourItemV3) From(main interface{}, op *operate.Card)

func (*FourItemV3) Get

func (c *FourItemV3) Get() *Base

type FourItemV3Item

type FourItemV3Item struct {
	Base
	CoverLeftText string     `json:"cover_left_text,omitempty"`
	CoverLeftIcon model.Icon `json:"cover_left_icon,omitempty"`
	Desc1         string     `json:"desc_1,omitempty"`
	Desc2         string     `json:"desc_2,omitempty"`
	Badge         string     `json:"badge,omitempty"`
}

type Handler

type Handler interface {
	From(main interface{}, op *operate.Card)
	Get() *Base
}

Handler is

func Handle

func Handle(plat int8, cardGoto model.CardGt, cardType model.CardType, column model.ColumnStatus, rcmd *ai.Item, tagm map[int64]*tag.Tag, isAttenm map[int64]int8, statm map[int64]*relation.Stat, cardm map[int64]*account.Card) (hander Handler)

Handle is

func SwapFourItem

func SwapFourItem(rs []Handler, i Handler) (is []Handler)

func SwapThreeItem

func SwapThreeItem(rs []Handler, i Handler) (is []Handler)

func SwapTwoItem

func SwapTwoItem(rs []Handler, i Handler) (is []Handler)

SwapTwoItem is

type HotTopic

type HotTopic struct {
	*Base
	Desc  string          `json:"desc,omitempty"`
	Items []*HotTopicItem `json:"items,omitempty"`
}

func (*HotTopic) From

func (c *HotTopic) From(main interface{}, op *operate.Card)

func (*HotTopic) Get

func (c *HotTopic) Get() *Base

type HotTopicItem

type HotTopicItem struct {
	Cover string `json:"cover,omitempty"`
	URI   string `json:"uri,omitempty"`
	Param string `json:"param,omitempty"`
	Name  string `json:"name,omitempty"`
}

type LargeCoverV1

type LargeCoverV1 struct {
	*Base
	Avatar                *Avatar          `json:"avatar,omitempty"`
	CoverLeftText1        string           `json:"cover_left_text_1,omitempty"`
	CoverLeftText2        string           `json:"cover_left_text_2,omitempty"`
	CoverLeftText3        string           `json:"cover_left_text_3,omitempty"`
	CoverBadge            string           `json:"cover_badge,omitempty"`
	TopRcmdReason         string           `json:"top_rcmd_reason,omitempty"`
	BottomRcmdReason      string           `json:"bottom_rcmd_reason,omitempty"`
	Desc                  string           `json:"desc,omitempty"`
	OfficialIcon          model.Icon       `json:"official_icon,omitempty"`
	CanPlay               int32            `json:"can_play,omitempty"`
	CoverBadgeColor       model.CoverColor `json:"cover_badge_color,omitempty"`
	TopRcmdReasonStyle    *ReasonStyle     `json:"top_rcmd_reason_style,omitempty"`
	BottomRcmdReasonStyle *ReasonStyle     `json:"bottom_rcmd_reason_style,omitempty"`
	CoverBadge2           string           `json:"cover_badge_2,omitempty"`
}

func (*LargeCoverV1) From

func (c *LargeCoverV1) From(main interface{}, op *operate.Card)

func (*LargeCoverV1) Get

func (c *LargeCoverV1) Get() *Base

type LargeCoverV2

type LargeCoverV2 struct {
	*Base
	Avatar           *Avatar      `json:"avatar,omitempty"`
	Badge            string       `json:"badge,omitempty"`
	CoverRightButton *Button      `json:"cover_right_button,omitempty"`
	CoverLeftText1   string       `json:"cover_left_text_1,omitempty"`
	CoverLeftIcon1   model.Icon   `json:"cover_left_icon_1,omitempty"`
	CoverLeftText2   string       `json:"cover_left_text_2,omitempty"`
	CoverLeftIcon2   model.Icon   `json:"cover_left_icon_2,omitempty"`
	RcmdReason       string       `json:"rcmd_reason,omitempty"`
	DescButton       *Button      `json:"desc_button,omitempty"`
	OfficialIcon     model.Icon   `json:"official_icon,omitempty"`
	CanPlay          int32        `json:"can_play,omitempty"`
	RcmdReasonStyle  *ReasonStyle `json:"rcmd_reason_style,omitempty"`
}

func (*LargeCoverV2) From

func (c *LargeCoverV2) From(main interface{}, op *operate.Card)

func (*LargeCoverV2) Get

func (c *LargeCoverV2) Get() *Base

type MiddleCover

type MiddleCover struct {
	*Base
	Ratio int    `json:"ratio,omitempty"`
	Badge string `json:"badge,omitempty"`
	Desc  string `json:"desc,omitempty"`
}

func (*MiddleCover) From

func (c *MiddleCover) From(main interface{}, op *operate.Card)

func (*MiddleCover) Get

func (c *MiddleCover) Get() *Base

type MiddleCoverV2

type MiddleCoverV2 struct {
	*Base
	Ratio int    `json:"ratio,omitempty"`
	Desc  string `json:"desc,omitempty"`
	Badge string `json:"badge,omitempty"`
}

func (*MiddleCoverV2) Get

func (c *MiddleCoverV2) Get() *Base

type MiddleCoverV3

type MiddleCoverV3 struct {
	*Base
	Desc1      string       `json:"desc1,omitempty"`
	Desc2      string       `json:"desc2,omitempty"`
	CoverBadge *ReasonStyle `json:"cover_badge_style,omitempty"`
}

func (*MiddleCoverV3) From

func (c *MiddleCoverV3) From(main interface{}, op *operate.Card)

func (*MiddleCoverV3) Get

func (c *MiddleCoverV3) Get() *Base

type MultiItem

type MultiItem struct {
	*Base
	MoreURI  string    `json:"more_uri,omitempty"`
	MoreText string    `json:"more_text,omitempty"`
	Items    []Handler `json:"items,omitempty"`
}

func (*MultiItem) From

func (c *MultiItem) From(main interface{}, op *operate.Card)

func (*MultiItem) Get

func (c *MultiItem) Get() *Base

type OnePicV1

type OnePicV1 struct {
	*Base
	Desc1                     string
	Desc2                     string
	Avatar                    *Avatar          `json:"avatar,omitempty"`
	CoverLeftText1            string           `json:"cover_left_text_1,omitempty"`
	CoverLeftText2            string           `json:"cover_left_text_2,omitempty"`
	CoverRightText            string           `json:"cover_right_text,omitempty"`
	CoverRightBackgroundColor string           `json:"cover_right_background_color,omitempty"`
	CoverBadge                string           `json:"cover_badge,omitempty"`
	TopRcmdReason             string           `json:"top_rcmd_reason,omitempty"`
	BottomRcmdReason          string           `json:"bottom_rcmd_reason,omitempty"`
	Desc                      string           `json:"desc,omitempty"`
	OfficialIcon              model.Icon       `json:"official_icon,omitempty"`
	CanPlay                   int32            `json:"can_play,omitempty"`
	CoverBadgeColor           model.CoverColor `json:"cover_badge_color,omitempty"`
	TopRcmdReasonStyle        *ReasonStyle     `json:"top_rcmd_reason_style,omitempty"`
	BottomRcmdReasonStyle     *ReasonStyle     `json:"bottom_rcmd_reason_style,omitempty"`
}

func (*OnePicV1) From

func (c *OnePicV1) From(main interface{}, op *operate.Card)

func (*OnePicV1) Get

func (c *OnePicV1) Get() *Base

type OnePicV2

type OnePicV2 struct {
	*Base
	CoverLeftText1            string       `json:"cover_left_text_1,omitempty"`
	CoverLeftIcon1            model.Icon   `json:"cover_left_icon_1,omitempty"`
	CoverRightText            string       `json:"cover_right_text,omitempty"`
	CoverRightIcon            model.Icon   `json:"cover_right_icon,omitempty"`
	CoverRightBackgroundColor string       `json:"cover_right_background_color,omitempty"`
	Badge                     string       `json:"badge,omitempty"`
	RcmdReason                string       `json:"rcmd_reason,omitempty"`
	Avatar                    *Avatar      `json:"avatar,omitempty"`
	RcmdReasonStyle           *ReasonStyle `json:"rcmd_reason_style,omitempty"`
}

func (*OnePicV2) From

func (c *OnePicV2) From(main interface{}, op *operate.Card)

func (*OnePicV2) Get

func (c *OnePicV2) Get() *Base

type Option

type Option struct {
	*Base
	Option []string `json:"option,omitempty"`
}

Option struct.

func (*Option) From

func (c *Option) From(main interface{}, op *operate.Card)

From is.

func (*Option) Get

func (c *Option) Get() *Base

Get is.

type PlayerArgs

type PlayerArgs struct {
	IsLive int8  `json:"is_live,omitempty"`
	Aid    int64 `json:"aid,omitempty"`
	Cid    int64 `json:"cid,omitempty"`
	RoomID int64 `json:"room_id,omitempty"`
}

PlayerArgs is

type ReasonStyle

type ReasonStyle struct {
	Text              string `json:"text,omitempty"`
	TextColor         string `json:"text_color,omitempty"`
	BgColor           string `json:"bg_color,omitempty"`
	BorderColor       string `json:"border_color,omitempty"`
	BgStyle           int8   `json:"bg_style,omitempty"`
	NightAlphaPercent int    `json:"night_alpha_percent,omitempty"`
}

ReasonStyle reason style

type Select

type Select struct {
	*Base
	Desc        string  `json:"desc,omitempty"`
	LeftButton  *Button `json:"left_button,omitempty"`
	RightButton *Button `json:"right_button,omitempty"`
}

func (*Select) From

func (c *Select) From(main interface{}, op *operate.Card)

func (*Select) Get

func (c *Select) Get() *Base

type SmallCoverV1

type SmallCoverV1 struct {
	*Base
	CoverBadge     string     `json:"cover_badge,omitempty"`
	Desc1          string     `json:"desc_1,omitempty"`
	Desc2          string     `json:"desc_2,omitempty"`
	Desc3          string     `json:"desc_3,omitempty"`
	TitleRightText string     `json:"title_right_text,omitempty"`
	TitleRightPic  model.Icon `json:"title_right_pic,omitempty"`
}

func (*SmallCoverV1) From

func (c *SmallCoverV1) From(main interface{}, op *operate.Card)

func (*SmallCoverV1) Get

func (c *SmallCoverV1) Get() *Base

type SmallCoverV2

type SmallCoverV2 struct {
	*Base
	CoverBlur                 model.BlurStatus `json:"cover_blur,omitempty"`
	CoverLeftText1            string           `json:"cover_left_text_1,omitempty"`
	CoverLeftIcon1            model.Icon       `json:"cover_left_icon_1,omitempty"`
	CoverLeftText2            string           `json:"cover_left_text_2,omitempty"`
	CoverLeftIcon2            model.Icon       `json:"cover_left_icon_2,omitempty"`
	CoverRightText            string           `json:"cover_right_text,omitempty"`
	CoverRightIcon            model.Icon       `json:"cover_right_icon,omitempty"`
	CoverRightBackgroundColor string           `json:"cover_right_background_color,omitempty"`
	Subtitle                  string           `json:"subtitle,omitempty"`
	Badge                     string           `json:"badge,omitempty"`
	RcmdReason                string           `json:"rcmd_reason,omitempty"`
	DescButton                *Button          `json:"desc_button,omitempty"`
	Desc                      string           `json:"desc,omitempty"`
	Avatar                    *Avatar          `json:"avatar,omitempty"`
	OfficialIcon              model.Icon       `json:"official_icon,omitempty"`
	CanPlay                   int32            `json:"can_play,omitempty"`
	RcmdReasonStyle           *ReasonStyle     `json:"rcmd_reason_style,omitempty"`
}

func (*SmallCoverV2) From

func (c *SmallCoverV2) From(main interface{}, op *operate.Card)

func (*SmallCoverV2) Get

func (c *SmallCoverV2) Get() *Base

type SmallCoverV3

type SmallCoverV3 struct {
	*Base
	Avatar           *Avatar      `json:"avatar,omitempty"`
	CoverLeftText    string       `json:"cover_left_text,omitempty"`
	CoverRightButton *Button      `json:"cover_right_button,omitempty"`
	RcmdReason       string       `json:"rcmd_reason,omitempty"`
	Desc             string       `json:"desc,omitempty"`
	DescButton       *Button      `json:"desc_button,omitempty"`
	OfficialIcon     model.Icon   `json:"official_icon,omitempty"`
	CanPlay          int32        `json:"can_play,omitempty"`
	RcmdReasonStyle  *ReasonStyle `json:"rcmd_reason_style,omitempty"`
}

func (*SmallCoverV3) From

func (c *SmallCoverV3) From(main interface{}, op *operate.Card)

func (*SmallCoverV3) Get

func (c *SmallCoverV3) Get() *Base

type SmallCoverV4

type SmallCoverV4 struct {
	*Base
	CoverBadge     string     `json:"cover_badge,omitempty"`
	Desc           string     `json:"desc,omitempty"`
	TitleRightText string     `json:"title_right_text,omitempty"`
	TitleRightPic  model.Icon `json:"title_right_pic,omitempty"`
}

func (*SmallCoverV4) From

func (c *SmallCoverV4) From(main interface{}, op *operate.Card)

func (*SmallCoverV4) Get

func (c *SmallCoverV4) Get() *Base

type SmallCoverV5

type SmallCoverV5 struct {
	*Base
	Up              *Up          `json:"up,omitempty"`
	CoverRightText1 string       `json:"cover_right_text_1,omitempty"`
	RightDesc1      string       `json:"right_desc_1,omitempty"`
	RightDesc2      string       `json:"right_desc_2,omitempty"`
	CanPlay         int32        `json:"can_play,omitempty"`
	RcmdReasonStyle *ReasonStyle `json:"rcmd_reason_style,omitempty"`
}

func (*SmallCoverV5) From

func (c *SmallCoverV5) From(main interface{}, op *operate.Card)

func (*SmallCoverV5) Get

func (c *SmallCoverV5) Get() *Base

type Text

type Text struct {
	*Base
	Content string `json:"content,omitempty"`
}

func (*Text) From

func (c *Text) From(main interface{}, op *operate.Card)

func (*Text) Get

func (c *Text) Get() *Base

type ThreeItemAll

type ThreeItemAll struct {
	*Base
	Items []*ThreeItemAllItem `json:"items,omitempty"`
}

func (*ThreeItemAll) From

func (c *ThreeItemAll) From(main interface{}, op *operate.Card)

func (*ThreeItemAll) Get

func (c *ThreeItemAll) Get() *Base

type ThreeItemAllItem

type ThreeItemAllItem struct {
	Base
	CoverType    model.Type `json:"cover_type,omitempty"`
	Desc         string     `json:"desc,omitempty"`
	DescButton   *Button    `json:"desc_button,omitempty"`
	OfficialIcon model.Icon `json:"official_icon,omitempty"`
}

type ThreeItemAllV2

type ThreeItemAllV2 struct {
	*Base
	DescButton         *Button           `json:"desc_button,omitempty"`
	TopRcmdReasonStyle *ReasonStyle      `json:"top_rcmd_reason_style,omitempty"`
	Items              []*TwoItemHV1Item `json:"item,omitempty"`
}

func (*ThreeItemAllV2) From

func (c *ThreeItemAllV2) From(main interface{}, op *operate.Card)

func (*ThreeItemAllV2) Get

func (c *ThreeItemAllV2) Get() *Base

type ThreeItemAllV2Item

type ThreeItemAllV2Item struct {
	Title          string     `json:"title,omitempty"`
	Cover          string     `json:"cover,omitempty"`
	URI            string     `json:"uri,omitempty"`
	Param          string     `json:"param,omitempty"`
	Args           Args       `json:"args,omitempty"`
	Goto           string     `json:"goto,omitempty"`
	CoverLeftText1 string     `json:"cover_left_text_1,omitempty"`
	CoverLeftIcon1 model.Icon `json:"cover_left_icon_1,omitempty"`
	CoverRightText string     `json:"cover_right_text,omitempty"`
}

type ThreeItemH

type ThreeItemH struct {
	*Base
	Items []*ThreeItemHItem `json:"items,omitempty"`
}

func (*ThreeItemH) From

func (c *ThreeItemH) From(main interface{}, op *operate.Card)

func (*ThreeItemH) Get

func (c *ThreeItemH) Get() *Base

type ThreeItemHItem

type ThreeItemHItem struct {
	Base
	CoverType    model.Type `json:"cover_type,omitempty"`
	Desc         string     `json:"desc,omitempty"`
	OfficialIcon model.Icon `json:"official_icon,omitempty"`
}

type ThreeItemHV3

type ThreeItemHV3 struct {
	*Base
	Covers        []string   `json:"covers,omitempty"`
	CoverTopText1 string     `json:"cover_top_text_1,omitempty"`
	CoverTopText2 string     `json:"cover_top_text_2,omitempty"`
	Desc          string     `json:"desc,omitempty"`
	Avatar        *Avatar    `json:"avatar,omitempty"`
	OfficialIcon  model.Icon `json:"official_icon,omitempty"`
}

func (*ThreeItemHV3) From

func (c *ThreeItemHV3) From(main interface{}, op *operate.Card)

func (*ThreeItemHV3) Get

func (c *ThreeItemHV3) Get() *Base

type ThreeItemHV4

type ThreeItemHV4 struct {
	*Base
	MoreURI  string              `json:"more_uri,omitempty"`
	MoreText string              `json:"more_text,omitempty"`
	Items    []*ThreeItemHV4Item `json:"items,omitempty"`
}

func (*ThreeItemHV4) From

func (c *ThreeItemHV4) From(main interface{}, op *operate.Card)

func (*ThreeItemHV4) Get

func (c *ThreeItemHV4) Get() *Base

type ThreeItemHV4Item

type ThreeItemHV4Item struct {
	Cover           string           `json:"cover,omitempty"`
	Title           string           `json:"title,omitempty"`
	Desc            string           `json:"desc,omitempty"`
	Goto            model.Gt         `json:"goto,omitempty"`
	Param           string           `json:"param,omitempty"`
	URI             string           `json:"uri,omitempty"`
	CoverBadge      string           `json:"cover_badge,omitempty"`
	CoverBadgeColor model.CoverColor `json:"cover_badge_color,omitempty"`
}

type ThreeItemV1

type ThreeItemV1 struct {
	*Base
	TitleIcon   model.Icon         `json:"title_icon,omitempty"`
	BannerCover string             `json:"banner_cover,omitempty"`
	BannerURI   string             `json:"banner_uri,omitempty"`
	MoreURI     string             `json:"more_uri,omitempty"`
	MoreText    string             `json:"more_text,omitempty"`
	Items       []*ThreeItemV1Item `json:"items,omitempty"`
}

func (*ThreeItemV1) From

func (c *ThreeItemV1) From(main interface{}, op *operate.Card)

func (*ThreeItemV1) Get

func (c *ThreeItemV1) Get() *Base

type ThreeItemV1Item

type ThreeItemV1Item struct {
	Base
	CoverLeftText string     `json:"cover_left_text,omitempty"`
	CoverLeftIcon model.Icon `json:"cover_left_icon,omitempty"`
	Desc1         string     `json:"desc_1,omitempty"`
	Desc2         string     `json:"desc_2,omitempty"`
	Badge         string     `json:"badge,omitempty"`
}

type ThreeItemV2

type ThreeItemV2 struct {
	*Base
	TitleIcon model.Icon         `json:"title_icon,omitempty"`
	MoreURI   string             `json:"more_uri,omitempty"`
	MoreText  string             `json:"more_text,omitempty"`
	Items     []*ThreeItemV2Item `json:"items,omitempty"`
}

func (*ThreeItemV2) From

func (c *ThreeItemV2) From(main interface{}, op *operate.Card)

func (*ThreeItemV2) Get

func (c *ThreeItemV2) Get() *Base

type ThreeItemV2Item

type ThreeItemV2Item struct {
	Base
	CoverLeftIcon model.Icon `json:"cover_left_icon,omitempty"`
	DescText1     string     `json:"desc_text_1,omitempty"`
	DescIcon1     model.Icon `json:"desc_icon_1,omitempty"`
	DescText2     string     `json:"desc_text_2,omitempty"`
	DescIcon2     model.Icon `json:"desc_icon_2,omitempty"`
	Badge         string     `json:"badge,omitempty"`
}

type ThreePicV1

type ThreePicV1 struct {
	*Base
	Covers                    []string     `json:"covers,omitempty"`
	Desc1                     string       `json:"desc_1,omitempty"`
	Desc2                     string       `json:"desc_2,omitempty"`
	Avatar                    *Avatar      `json:"avatar,omitempty"`
	TitleLeftText1            string       `json:"title_left_text_1,omitempty"`
	TitleLeftText2            string       `json:"title_left_text_2,omitempty"`
	CoverRightText            string       `json:"cover_right_text,omitempty"`
	CoverRightBackgroundColor string       `json:"cover_right_background_color,omitempty"`
	TopRcmdReason             string       `json:"top_rcmd_reason,omitempty"`
	BottomRcmdReason          string       `json:"bottom_rcmd_reason,omitempty"`
	TopRcmdReasonStyle        *ReasonStyle `json:"top_rcmd_reason_style,omitempty"`
	BottomRcmdReasonStyle     *ReasonStyle `json:"bottom_rcmd_reason_style,omitempty"`
}

func (*ThreePicV1) From

func (c *ThreePicV1) From(main interface{}, op *operate.Card)

func (*ThreePicV1) Get

func (c *ThreePicV1) Get() *Base

type ThreePicV2

type ThreePicV2 struct {
	*Base
	LeftCover                 string       `json:"left_cover,omitempty"`
	RightCover1               string       `json:"right_cover_1,omitempty"`
	RightCover2               string       `json:"right_cover_2,omitempty"`
	CoverLeftText1            string       `json:"cover_left_text_1,omitempty"`
	CoverLeftIcon1            model.Icon   `json:"cover_left_icon_1,omitempty"`
	CoverLeftText2            string       `json:"cover_left_text_2,omitempty"`
	CoverLeftIcon2            model.Icon   `json:"cover_left_icon_2,omitempty"`
	CoverRightText            string       `json:"cover_right_text,omitempty"`
	CoverRightIcon            model.Icon   `json:"cover_right_icon,omitempty"`
	CoverRightBackgroundColor string       `json:"cover_right_background_color,omitempty"`
	Badge                     string       `json:"badge,omitempty"`
	RcmdReason                string       `json:"rcmd_reason,omitempty"`
	DescButton                *Button      `json:"desc_button,omitempty"`
	Desc                      string       `json:"desc,omitempty"`
	Avatar                    *Avatar      `json:"avatar,omitempty"`
	RcmdReasonStyle           *ReasonStyle `json:"rcmd_reason_style,omitempty"`
}

func (*ThreePicV2) From

func (c *ThreePicV2) From(main interface{}, op *operate.Card)

func (*ThreePicV2) Get

func (c *ThreePicV2) Get() *Base

type ThreePoint

type ThreePoint struct {
	DislikeReasons []*DislikeReason `json:"dislike_reasons,omitempty"`
	Feedbacks      []*Feedback      `json:"feedbacks,omitempty"`
	WatchLater     int8             `json:"watch_later,omitempty"`
}

ThreePoint is

type Topstick

type Topstick struct {
	*Base
	Desc string `json:"desc,omitempty"`
}

func (*Topstick) From

func (c *Topstick) From(main interface{}, op *operate.Card)

func (*Topstick) Get

func (c *Topstick) Get() *Base

type TwoItemHV1

type TwoItemHV1 struct {
	*Base
	Desc       string            `json:"desc,omitempty"`
	DescButton *Button           `json:"desc_button,omitempty"`
	Items      []*TwoItemHV1Item `json:"item,omitempty"`
}

func (*TwoItemHV1) From

func (c *TwoItemHV1) From(main interface{}, op *operate.Card)

func (*TwoItemHV1) Get

func (c *TwoItemHV1) Get() *Base

type TwoItemHV1Item

type TwoItemHV1Item struct {
	Title          string     `json:"title,omitempty"`
	Cover          string     `json:"cover,omitempty"`
	URI            string     `json:"uri,omitempty"`
	Param          string     `json:"param,omitempty"`
	Args           Args       `json:"args,omitempty"`
	Goto           string     `json:"goto,omitempty"`
	CoverLeftText1 string     `json:"cover_left_text_1,omitempty"`
	CoverLeftIcon1 model.Icon `json:"cover_left_icon_1,omitempty"`
	CoverRightText string     `json:"cover_right_text,omitempty"`
}

type TwoItemV1

type TwoItemV1 struct {
	*Base
	Items []*TwoItemV1Item `json:"items,omitempty"`
}

func (*TwoItemV1) From

func (c *TwoItemV1) From(main interface{}, op *operate.Card)

func (*TwoItemV1) Get

func (c *TwoItemV1) Get() *Base

type TwoItemV1Item

type TwoItemV1Item struct {
	Base
	CoverBadge     string `json:"cover_badge,omitempty"`
	CoverLeftText1 string `json:"cover_left_text_1,omitempty"`
}

type TwoItemV2

type TwoItemV2 struct {
	*Base
	Items []*TwoItemV2Item `json:"items,omitempty"`
}

func (*TwoItemV2) From

func (c *TwoItemV2) From(main interface{}, op *operate.Card)

func (*TwoItemV2) Get

func (c *TwoItemV2) Get() *Base

type TwoItemV2Item

type TwoItemV2Item struct {
	Base
	Badge          string     `json:"badge,omitempty"`
	CoverLeftText1 string     `json:"cover_left_text_1,omitempty"`
	CoverLeftIcon1 model.Icon `json:"cover_left_icon_1,omitempty"`
	DescButton     *Button    `json:"desc_button,omitempty"`
}

type Up

type Up struct {
	ID           int64      `json:"id,omitempty"`
	Name         string     `json:"name,omitempty"`
	Desc         string     `json:"desc,omitempty"`
	Avatar       *Avatar    `json:"avatar,omitempty"`
	OfficialIcon model.Icon `json:"official_icon,omitempty"`
	DescButton   *Button    `json:"desc_button,omitempty"`
	Cooperation  string     `json:"cooperation,omitempty"`
}

type UpRcmdCover

type UpRcmdCover struct {
	*Base
	CoverType    model.Type `json:"cover_type,omitempty"`
	Level        int32      `json:"level,omitempty"`
	OfficialIcon model.Icon `json:"official_icon,omitempty"`
	DescButton   *Button    `json:"desc_button,omitempty"`
	Desc1        string     `json:"desc_1,omitempty"`
	Desc2        string     `json:"desc_2,omitempty"`
	Desc3        string     `json:"desc_3,omitempty"`
}

func (*UpRcmdCover) From

func (c *UpRcmdCover) From(main interface{}, op *operate.Card)

func (*UpRcmdCover) Get

func (c *UpRcmdCover) Get() *Base

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL