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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewTag

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

type Region

type Region struct {
	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"`
	Children  []*Region `json:"children,omitempty"`
}

type Show

type Show struct {
	Tag       *tag.Tag          `json:"tag,omitempty"`
	TopTag    []*tag.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"`
	Param string `json:"param"`
	Goto  string `json:"goto"`
	// up
	Name string `json:"name,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"`
}

func (*ShowItem) FromArchive

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

FromArchive from archive archive.

func (*ShowItem) FromBangumi

func (i *ShowItem) FromBangumi(a *api.Arc, season *bangumi.SeasonInfo, bangumiType int)

FromArchive from archive archive.

type TagTab

type TagTab struct {
	Tag    *tag.Tag          `json:"tag,omitempty"`
	TopTag []*tag.SimilarTag `json:"top_tag,omitempty"`
}

Jump to

Keyboard shortcuts

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