region

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: 11 Imported by: 0

Documentation

Index

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 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

func (h *Head) FillBuildURI(plat int8, build int)

type Limit

type Limit struct {
	ID        int64  `json:"-"`
	Rid       int64  `json:"-"`
	Build     int    `json:"-"`
	Condition string `json:"-"`
}

type NewTag

type NewTag struct {
	Position int           `json:"pos"`
	Tag      []*SimilarTag `json:"tag"`
}

type OfficialVerify

type OfficialVerify struct {
	Type int    `json:"type"`
	Desc string `json:"desc"`
}

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"`
	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"`
	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

func (i *ShowItem) FromActivity(a *activity.Activity, now time.Time)

FromActivity

func (*ShowItem) FromArc

func (i *ShowItem) FromArc(a *recommend.Arc)

FromArc from recommend arc.

func (*ShowItem) FromArcBangumi

func (i *ShowItem) FromArcBangumi(a *recommend.Arc, sids map[int64]int64)

FromArcBangumi from recommend arc bangumi.

func (*ShowItem) FromArchivePB

func (i *ShowItem) FromArchivePB(a *api.Arc)

FromArchivePB from archive archive.

func (*ShowItem) FromArchivePBRank

func (i *ShowItem) FromArchivePBRank(a *api.Arc, scores map[int64]int64)

FromArchivePBRank from archive archive.

func (*ShowItem) FromBangumiArchivePB

func (i *ShowItem) FromBangumiArchivePB(a *api.Arc, season *seasongrpc.CardInfoProto, bangumiType int)

FromBangumi from archive archive.

func (*ShowItem) FromTopic

func (i *ShowItem) FromTopic(a *activity.Activity)

FromTopic

type SimilarTag

type SimilarTag struct {
	TagId   int    `json:"tid"`
	TagName string `json:"tname"`
	Rid     int    `json:"rid,omitempty"`
	Rname   string `json:"rname,omitempty"`
	Reid    int    `json:"reid,omitempty"`
	Rename  string `json:"rename,omitempty"`
}

Jump to

Keyboard shortcuts

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