entity

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccInfo

type AccInfo struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    struct {
		Mid  int    `json:"mid"`
		Name string `json:"name"`
		VIP  struct {
			DueDate int64 `json:"due_date"`
		} `json:"vip"`
	} `json:"data"`
}

AccInfo account info

func (AccInfo) MarshalEasyJSON

func (v AccInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AccInfo) MarshalJSON

func (v AccInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AccInfo) UnmarshalEasyJSON

func (v *AccInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AccInfo) UnmarshalJSON

func (v *AccInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Actor

type Actor struct {
	Title string `json:"title"`
	Info  string `json:"info"`
}

func (Actor) MarshalEasyJSON

func (v Actor) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Actor) MarshalJSON

func (v Actor) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Actor) UnmarshalEasyJSON

func (v *Actor) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Actor) UnmarshalJSON

func (v *Actor) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Areas

type Areas struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

func (Areas) MarshalEasyJSON

func (v Areas) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Areas) MarshalJSON

func (v Areas) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Areas) UnmarshalEasyJSON

func (v *Areas) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Areas) UnmarshalJSON

func (v *Areas) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CustomSubData

type CustomSubData struct {
	Ep   int    `json:"ep"`
	Key  string `json:"key"`
	Lang string `json:"lang"`
	URL  string `json:"url"`
}

func (CustomSubData) MarshalEasyJSON

func (v CustomSubData) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomSubData) MarshalJSON

func (v CustomSubData) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CustomSubData) UnmarshalEasyJSON

func (v *CustomSubData) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomSubData) UnmarshalJSON

func (v *CustomSubData) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CustomSubResponse

type CustomSubResponse struct {
	Code int             `json:"code"`
	Data []CustomSubData `json:"data"`
}

func (CustomSubResponse) MarshalEasyJSON

func (v CustomSubResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomSubResponse) MarshalJSON

func (v CustomSubResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CustomSubResponse) UnmarshalEasyJSON

func (v *CustomSubResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomSubResponse) UnmarshalJSON

func (v *CustomSubResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Data

type Data struct {
	Episodes []Episodes `json:"episodes"`
}

func (Data) MarshalEasyJSON

func (v Data) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Data) MarshalJSON

func (v Data) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Data) UnmarshalEasyJSON

func (v *Data) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Data) UnmarshalJSON

func (v *Data) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Dimension

type Dimension struct {
	Width  int `json:"width"`
	Height int `json:"height"`
	Rotate int `json:"rotate"`
}

func (Dimension) MarshalEasyJSON

func (v Dimension) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Dimension) MarshalJSON

func (v Dimension) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Dimension) UnmarshalEasyJSON

func (v *Dimension) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Dimension) UnmarshalJSON

func (v *Dimension) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Episodes

type Episodes struct {
	Aid              int         `json:"aid"`
	Cid              int         `json:"cid"`
	Cover            string      `json:"cover"`
	ID               int         `json:"id"`
	Title            string      `json:"title"`
	LongTitle        string      `json:"long_title"`
	Status           int         `json:"status"`
	From             string      `json:"from"`
	ShareURL         string      `json:"share_url"`
	Dimension        Dimension   `json:"dimension"`
	Jump             interface{} `json:"jump"`
	TitleDisplay     string      `json:"title_display"`
	LongTitleDisplay string      `json:"long_title_display"`
	Subtitles        []Subtitles `json:"subtitles"`
}

func (Episodes) MarshalEasyJSON

func (v Episodes) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Episodes) MarshalJSON

func (v Episodes) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Episodes) UnmarshalEasyJSON

func (v *Episodes) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Episodes) UnmarshalJSON

func (v *Episodes) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Health added in v1.1.0

type Health struct {
	Code    int        `json:"code"`
	Message string     `json:"message"`
	Data    HealthData `json:"data"`
}

func (Health) MarshalEasyJSON added in v1.1.0

func (v Health) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Health) MarshalJSON added in v1.1.0

func (v Health) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Health) UnmarshalEasyJSON added in v1.1.0

func (v *Health) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Health) UnmarshalJSON added in v1.1.0

func (v *Health) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type HealthData added in v1.1.0

type HealthData struct {
	LastCheck time.Time `json:"last_check"`
}

func (HealthData) MarshalEasyJSON added in v1.1.0

func (v HealthData) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (HealthData) MarshalJSON added in v1.1.0

func (v HealthData) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*HealthData) UnmarshalEasyJSON added in v1.1.0

func (v *HealthData) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HealthData) UnmarshalJSON added in v1.1.0

func (v *HealthData) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ModuleStyle

type ModuleStyle struct {
	Line      int         `json:"line"`
	Hidden    int         `json:"hidden"`
	ShowPages interface{} `json:"show_pages"`
}

func (ModuleStyle) MarshalEasyJSON

func (v ModuleStyle) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ModuleStyle) MarshalJSON

func (v ModuleStyle) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ModuleStyle) UnmarshalEasyJSON

func (v *ModuleStyle) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ModuleStyle) UnmarshalJSON

func (v *ModuleStyle) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Modules

type Modules struct {
	ID          int         `json:"id"`
	Style       string      `json:"style"`
	Title       string      `json:"title"`
	More        string      `json:"more"`
	CanOrdDesc  int         `json:"can_ord_desc"`
	Data        Data        `json:"data"`
	ModuleStyle ModuleStyle `json:"module_style"`
	Partition   int         `json:"partition"`
}

func (Modules) MarshalEasyJSON

func (v Modules) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Modules) MarshalJSON

func (v Modules) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Modules) UnmarshalEasyJSON

func (v *Modules) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Modules) UnmarshalJSON

func (v *Modules) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type NewEp

type NewEp struct {
	ID           int    `json:"id"`
	Title        string `json:"title"`
	NewEpDisplay string `json:"new_ep_display"`
}

func (NewEp) MarshalEasyJSON

func (v NewEp) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (NewEp) MarshalJSON

func (v NewEp) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*NewEp) UnmarshalEasyJSON

func (v *NewEp) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*NewEp) UnmarshalJSON

func (v *NewEp) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Publish

type Publish struct {
	PubTime         string `json:"pub_time"`
	PubTimeShow     string `json:"pub_time_show"`
	IsStarted       int    `json:"is_started"`
	IsFinish        int    `json:"is_finish"`
	Weekday         int    `json:"weekday"`
	ReleaseDateShow string `json:"release_date_show"`
	TimeLengthShow  string `json:"time_length_show"`
	UnknowPubDate   int    `json:"unknow_pub_date"`
}

func (Publish) MarshalEasyJSON

func (v Publish) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Publish) MarshalJSON

func (v Publish) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Publish) UnmarshalEasyJSON

func (v *Publish) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Publish) UnmarshalJSON

func (v *Publish) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Result

type Result struct {
	SeasonID           int         `json:"season_id"`
	Alias              string      `json:"alias"`
	CommentRestriction string      `json:"comment_restriction"`
	NoComment          string      `json:"no_comment"`
	Title              string      `json:"title"`
	Subtitle           string      `json:"subtitle"`
	DynamicSubtitle    string      `json:"dynamic_subtitle"`
	SeasonTitle        string      `json:"season_title"`
	SquareCover        string      `json:"square_cover"`
	RefineCover        string      `json:"refine_cover"`
	ShareURL           string      `json:"share_url"`
	ShareCopy          string      `json:"share_copy"`
	ShortLink          string      `json:"short_link"`
	Evaluate           string      `json:"evaluate"`
	Link               string      `json:"link"`
	Type               int         `json:"type"`
	TypeName           string      `json:"type_name"`
	Mode               int         `json:"mode"`
	Status             int         `json:"status"`
	Total              int         `json:"total"`
	Rights             Rights      `json:"rights"`
	Publish            Publish     `json:"publish"`
	Detail             string      `json:"detail"`
	Staff              interface{} `json:"staff"`
	Actor              Actor       `json:"actor"`
	OriginName         string      `json:"origin_name"`
	Styles             []Styles    `json:"styles"`
	Modules            []Modules   `json:"modules"`
	UpInfo             interface{} `json:"up_info"`
	UserStatus         UserStatus  `json:"user_status"`
	NewEp              NewEp       `json:"new_ep"`
	Rating             interface{} `json:"rating"`
	Stat               Stat        `json:"stat"`
	StatFormat         StatFormat  `json:"stat_format"`
	Cover              string      `json:"cover"`
	HorizonCover       string      `json:"horizon_cover"`
	Areas              []Areas     `json:"areas"`
	Limit              interface{} `json:"limit"`
	Payment            interface{} `json:"payment"`
	ActivityDialog     interface{} `json:"activity_dialog"`
	LoginDialog        interface{} `json:"login_dialog"`
	UpdatePartten      string      `json:"update_partten"`
	SubtitleSuggestKey string      `json:"subtitle_suggest_key"`
	OpenSkipSwitch     bool        `json:"open_skip_switch"`
}

func (Result) MarshalEasyJSON

func (v Result) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Result) MarshalJSON

func (v Result) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Result) UnmarshalEasyJSON

func (v *Result) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Result) UnmarshalJSON

func (v *Result) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Rights

type Rights struct {
	Copyright       string `json:"copyright"`
	AllowBp         int    `json:"allow_bp"`
	AllowDownload   int    `json:"allow_download"`
	AreaLimit       int    `json:"area_limit"`
	AllowReview     int    `json:"allow_review"`
	IsPreview       int    `json:"is_preview"`
	BanAreaShow     int    `json:"ban_area_show"`
	AllowBpRank     int    `json:"allow_bp_rank"`
	CanWatch        int    `json:"can_watch"`
	Forbidpre       int    `json:"forbidPre"`
	Onlyvipdownload int    `json:"onlyVipDownload"`
}

func (Rights) MarshalEasyJSON

func (v Rights) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Rights) MarshalJSON

func (v Rights) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Rights) UnmarshalEasyJSON

func (v *Rights) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Rights) UnmarshalJSON

func (v *Rights) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SeasonResponse

type SeasonResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Result  Result `json:"result"`
	Success bool   `json:"success"`
}

func (SeasonResponse) MarshalEasyJSON

func (v SeasonResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SeasonResponse) MarshalJSON

func (v SeasonResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SeasonResponse) UnmarshalEasyJSON

func (v *SeasonResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SeasonResponse) UnmarshalJSON

func (v *SeasonResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SimpleResponse

type SimpleResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	TTL     int    `json:"ttl"`
}

SimpleResponse simple response

func (SimpleResponse) MarshalEasyJSON

func (v SimpleResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SimpleResponse) MarshalJSON

func (v SimpleResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SimpleResponse) UnmarshalEasyJSON

func (v *SimpleResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SimpleResponse) UnmarshalJSON

func (v *SimpleResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Stat

type Stat struct {
	Favorites  int    `json:"favorites"`
	Views      int    `json:"views"`
	Danmakus   int    `json:"danmakus"`
	Coins      int    `json:"coins"`
	Reply      int    `json:"reply"`
	Share      int    `json:"share"`
	Hot        int    `json:"hot"`
	Play       string `json:"play"`
	Followers  string `json:"followers"`
	SeriesPlay string `json:"series_play"`
	Likes      int    `json:"likes"`
}

func (Stat) MarshalEasyJSON

func (v Stat) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Stat) MarshalJSON

func (v Stat) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Stat) UnmarshalEasyJSON

func (v *Stat) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Stat) UnmarshalJSON

func (v *Stat) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StatFormat

type StatFormat struct {
	Play  string `json:"play"`
	Likes string `json:"likes"`
	Share string `json:"share"`
	Reply string `json:"reply"`
}

func (StatFormat) MarshalEasyJSON

func (v StatFormat) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StatFormat) MarshalJSON

func (v StatFormat) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StatFormat) UnmarshalEasyJSON

func (v *StatFormat) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StatFormat) UnmarshalJSON

func (v *StatFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Styles

type Styles struct {
	ID   int    `json:"id"`
	URL  string `json:"url"`
	Name string `json:"name"`
}

func (Styles) MarshalEasyJSON

func (v Styles) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Styles) MarshalJSON

func (v Styles) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Styles) UnmarshalEasyJSON

func (v *Styles) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Styles) UnmarshalJSON

func (v *Styles) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Subtitles

type Subtitles struct {
	ID        int64  `json:"id"`
	Key       string `json:"key"`
	Title     string `json:"title"`
	URL       string `json:"url"`
	IsMachine bool   `json:"is_machine"`
}

func (Subtitles) MarshalEasyJSON

func (v Subtitles) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Subtitles) MarshalJSON

func (v Subtitles) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Subtitles) UnmarshalEasyJSON

func (v *Subtitles) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Subtitles) UnmarshalJSON

func (v *Subtitles) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UserStatus

type UserStatus struct {
	Follow           int         `json:"follow"`
	Vip              int         `json:"vip"`
	LikeState        int         `json:"like_state"`
	DemandNoPayEpids interface{} `json:"demand_no_pay_epids"`
}

func (UserStatus) MarshalEasyJSON

func (v UserStatus) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UserStatus) MarshalJSON

func (v UserStatus) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UserStatus) UnmarshalEasyJSON

func (v *UserStatus) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UserStatus) UnmarshalJSON

func (v *UserStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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