view

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

Documentation

Index

Constants

View Source
const (
	VIPActiveView   = 1
	VIPActivePGC    = 2
	VIPActiveCenter = 3
)

vip active subID.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Paid  int8  `json:"paid"`
	Price int64 `json:"price"`
	Msg   struct {
		Desc1 string `json:"desc1"`
		Desc2 string `json:"desc2"`
	} `json:"msg"`
}

type Audio

type Audio struct {
	Title    string `json:"title"`
	Cover    string `json:"cover_url"`
	SongID   int    `json:"song_id"`
	Play     int    `json:"play_count"`
	Reply    int    `json:"reply_count"`
	UpperID  int    `json:"upper_id"`
	Entrance string `json:"entrance"`
	SongAttr int    `json:"song_attr"`
}

Audio struct

type BnjItem

type BnjItem struct {
	Aid       int64             `json:"aid"`
	Cid       int64             `json:"cid"`
	Tid       int32             `json:"tid"`
	Pic       string            `json:"pic"`
	Copyright int32             `json:"copyright"`
	PubDate   xtime.Time        `json:"pubdate"`
	IsAd      int               `json:"is_ad"`
	Title     string            `json:"title"`
	Desc      string            `json:"desc,omitempty"`
	Stat      archive.Stat3     `json:"stat,omitempty"`
	Duration  int64             `json:"duration,omitempty"`
	Author    archive.Author3   `json:"owner,omitempty"`
	Dimension archive.Dimension `json:"dimension,omitempty"`
	ReqUser   *ReqUser          `json:"req_user,omitempty"`
	Pages     []*Page           `json:"pages,omitempty"`
	Rights    archive.Rights3   `json:"rights"`
}

BnjItem is

type BnjList

type BnjList struct {
	Item []*BnjItem `json:"list"`
}

BnjList is

type BnjMain

type BnjMain struct {
	*archive.Archive3
	// now user
	ReqUser *ReqUser   `json:"req_user,omitempty"`
	Pages   []*Page    `json:"pages,omitempty"`
	Elec    *elec.Info `json:"elec,omitempty"`
	Relates []*BnjItem `json:"relates"`
	// player_icon
	PlayerIcon    *PlayerIcon `json:"player_icon,omitempty"`
	ElecBigText   string      `json:"elec_big_text"`
	ElecSmallText string      `json:"elec_small_text"`
}

BnjMain is

type BnjPastReview

type BnjPastReview struct {
	AID   int64  `json:"aid"`
	Img   string `json:"img"`
	Title string `json:"title"`
}

BnjPastReview struct

type BnjView

type BnjView struct {
	BeginTime int64 `json:"begin_time"`
	*api.Arc
	// owner_ext
	OwnerExt OwnerExt `json:"owner_ext"`
	// now user
	ReqUser  *ReqUser `json:"req_user,omitempty"`
	LiveRoom struct {
		ID       int64  `json:"id"`
		DmServer string `json:"dm_server"`
		DmPort   int64  `json:"dm_port"`
		Title    string `json:"title"`
		Uname    string `json:"uname"`
		Cover    string `json:"cover"`
	} `json:"live_room"`
	Pages   []*Page    `json:"pages,omitempty"`
	Elec    *elec.Info `json:"elec,omitempty"`
	Stat    *api.Stat  `json:"stat,omitempty"`
	Lottery struct {
		ActID   int64    `json:"act_id"`
		Times   int64    `json:"times"`
		Rule    string   `json:"rule"`
		List    []string `json:"list"`
		Winners []string `json:"winners"`
	} `json:"lottery"`
	Relates     []*act.Relate    `json:"relates"`
	PastReviews []*BnjPastReview `json:"past_review"`
}

BnjView 2018

type Button

type Button struct {
	Title string `json:"title,omitempty"`
	URI   string `json:"uri,omitempty"`
}

Button struct

type CM

type CM struct {
	RequestID string     `json:"request_id,omitempty"`
	RscID     int64      `json:"rsc_id,omitempty"`
	SrcID     int64      `json:"src_id,omitempty"`
	IsAdLoc   bool       `json:"is_ad_loc,omitempty"`
	IsAd      bool       `json:"is_ad,omitempty"`
	CmMark    int        `json:"cm_mark,omitempty"`
	ClientIP  string     `json:"client_ip,omitempty"`
	Index     int        `json:"index,omitempty"`
	AdInfo    *ad.AdInfo `json:"ad_info,omitempty"`
}

CM struct

func (*CM) FromCM

func (c *CM) FromCM(ad *ad.AdInfo)

FromCM func

type CMConfig

type CMConfig struct {
	AdsControl  json.RawMessage `json:"ads_control,omitempty"`
	MonitorInfo json.RawMessage `json:"monitor_info,omitempty"`
}

CMConfig struct

type Contribution

type Contribution struct {
	Aid    int64      `json:"aid,omitempty"`
	Pic    string     `json:"pic,omitempty"`
	Title  string     `json:"title,omitempty"`
	Author api.Author `json:"owner,omitempty"`
	Stat   api.Stat   `json:"stat,omitempty"`
	CTime  xtime.Time `json:"ctime,omitempty"`
}

Contribution struct

type Dislike

type Dislike struct {
	ID   int    `json:"reason_id"`
	Name string `json:"reason_name"`
}

Dislike struct

type History

type History struct {
	Cid      int64 `json:"cid"`
	Progress int64 `json:"progress"`
}

History struct

type Meta

type Meta struct {
	Quality int    `json:"quality"`
	Format  string `json:"format"`
	Size    int64  `json:"size"`
}

Meta struct

type NewRelateRec

type NewRelateRec struct {
	TrackID    string          `json:"trackid"`
	Oid        int64           `json:"id"`
	Source     string          `json:"source"`
	AvFeature  json.RawMessage `json:"av_feature"`
	Goto       string          `json:"goto"`
	Title      string          `json:"title"`
	IsDalao    int8            `json:"is_dalao"`
	RcmdReason struct {
		Content string `json:"content"`
	} `json:"rcmd_reason"`
}

NewRelateRec struct

type OwnerExt

type OwnerExt struct {
	OfficialVerify struct {
		Type int    `json:"type"`
		Desc string `json:"desc"`
	} `json:"official_verify,omitempty"`
	Live *live.Live `json:"live,omitempty"`
	Vip  struct {
		Type          int    `json:"vipType"`
		DueDate       int64  `json:"vipDueDate"`
		DueRemark     string `json:"dueRemark"`
		AccessStatus  int    `json:"accessStatus"`
		VipStatus     int    `json:"vipStatus"`
		VipStatusWarn string `json:"vipStatusWarn"`
	} `json:"vip"`
	Assists  []int64 `json:"assists"`
	Fans     int     `json:"fans"`
	Archives int     `json:"-"`
}

OwnerExt struct

type Page

type Page struct {
	*archive.Page3
	Metas  []*Meta          `json:"metas"`
	DMLink string           `json:"dmlink"`
	Audio  *Audio           `json:"audio,omitempty"`
	DM     *dm2.SubjectInfo `json:"dm,omitempty"`
}

Page struct

type PlayerIcon

type PlayerIcon struct {
	URL1  string     `json:"url1,omitempty"`
	Hash1 string     `json:"hash1,omitempty"`
	URL2  string     `json:"url2,omitempty"`
	Hash2 string     `json:"hash2,omitempty"`
	CTime xtime.Time `json:"ctime,omitempty"`
}

PlayerIcon struct

type Relate

type Relate struct {
	Aid         int64       `json:"aid,omitempty"`
	Pic         string      `json:"pic,omitempty"`
	Title       string      `json:"title,omitempty"`
	Author      *api.Author `json:"owner,omitempty"`
	Stat        api.Stat    `json:"stat,omitempty"`
	Duration    int64       `json:"duration,omitempty"`
	Goto        string      `json:"goto,omitempty"`
	Param       string      `json:"param,omitempty"`
	URI         string      `json:"uri,omitempty"`
	Rating      float64     `json:"rating,omitempty"`
	Reserve     string      `json:"reserve,omitempty"`
	From        string      `json:"from,omitempty"`
	Desc        string      `json:"desc,omitempty"`
	RcmdReason  string      `json:"rcmd_reason,omitempty"`
	Badge       string      `json:"badge,omitempty"`
	Cid         int64       `json:"cid,omitempty"`
	SeasonType  int32       `json:"season_type,omitempty"`
	RatingCount int32       `json:"rating_count,omitempty"`
	// cm ad
	AdIndex      int             `json:"ad_index,omitempty"`
	CmMark       int             `json:"cm_mark,omitempty"`
	SrcID        int64           `json:"src_id,omitempty"`
	RequestID    string          `json:"request_id,omitempty"`
	CreativeID   int64           `json:"creative_id,omitempty"`
	CreativeType int64           `json:"creative_type,omitempty"`
	Type         int             `json:"type,omitempty"`
	Cover        string          `json:"cover,omitempty"`
	ButtonTitle  string          `json:"button_title,omitempty"`
	View         int             `json:"view,omitempty"`
	Danmaku      int             `json:"danmaku,omitempty"`
	IsAd         bool            `json:"is_ad,omitempty"`
	IsAdLoc      bool            `json:"is_ad_loc,omitempty"`
	AdCb         string          `json:"ad_cb,omitempty"`
	ShowURL      string          `json:"show_url,omitempty"`
	ClickURL     string          `json:"click_url,omitempty"`
	ClientIP     string          `json:"client_ip,omitempty"`
	Extra        json.RawMessage `json:"extra,omitempty"`
	Button       *Button         `json:"button,omitempty"`
	CardIndex    int             `json:"card_index,omitempty"`
	Source       string          `json:"-"`
	AvFeature    json.RawMessage `json:"-"`
	TrackID      string          `json:"trackid"`
}

Relate struct

func (*Relate) FromAv

func (r *Relate) FromAv(a *api.Arc, from, trackid string, ap *archive.PlayerInfo, cooperation bool)

FromAv func

func (*Relate) FromBangumi

func (r *Relate) FromBangumi(ban *v1.CardInfoProto)

FromBangumi func

func (*Relate) FromCM

func (r *Relate) FromCM(ad *ad.AdInfo)

FromCM func

func (*Relate) FromGame

func (r *Relate) FromGame(i *game.Info, from string)

FromGame func

func (*Relate) FromOperate

func (r *Relate) FromOperate(i *NewRelateRec, a *api.Arc, info *game.Info, sp *special.Card, from string, cooperation bool)

FromOperate func

func (*Relate) FromOperateOld

func (r *Relate) FromOperateOld(i *manager.Relate, a *api.Arc, info *game.Info, sp *special.Card, from string, cooperation bool)

FromOperate func

func (*Relate) FromSpecial

func (r *Relate) FromSpecial(sp *special.Card, from string)

FromSpecial func

type ReqUser

type ReqUser struct {
	Attention int  `json:"attention"`
	Favorite  int8 `json:"favorite"`
	Like      int8 `json:"like"`
	Dislike   int8 `json:"dislike"`
	Coin      int8 `json:"coin"`
}

ReqUser struct

type Staff

type Staff struct {
	Mid            int64  `json:"mid,omitempty"`
	Title          string `json:"title,omitempty"`
	Face           string `json:"face,omitempty"`
	Name           string `json:"name,omitempty"`
	OfficialVerify struct {
		Type int    `json:"type"`
		Desc string `json:"desc"`
	} `json:"official_verify"`
	Vip struct {
		Type          int    `json:"vipType"`
		DueDate       int64  `json:"vipDueDate"`
		DueRemark     string `json:"dueRemark"`
		AccessStatus  int    `json:"accessStatus"`
		VipStatus     int    `json:"vipStatus"`
		VipStatusWarn string `json:"vipStatusWarn"`
	} `json:"vip"`
	Attention int `json:"attention"`
}

Staff from cooperation

type TripleParam

type TripleParam struct {
	MobiApp string `form:"mobi_app"`
	Build   string `form:"build"`
	AID     int64  `form:"aid"`
	Ak      string `form:"access_key"`
	From    string `form:"from"`
}

TripleParam struct

type TripleRes

type TripleRes struct {
	Like      bool  `json:"like"`
	Coin      bool  `json:"coin"`
	Fav       bool  `json:"fav"`
	Prompt    bool  `json:"prompt"`
	Multiply  int64 `json:"multiply"`
	UpID      int64 `json:"-"`
	Anticheat bool  `json:"-"`
}

TripleRes struct

type Videoshot

type Videoshot struct {
	*archive.Videoshot
	Points []*creative.Points `json:"points,omitempty"`
}

Videoshot videoshot

type View

type View struct {
	*ViewStatic
	// owner_ext
	OwnerExt OwnerExt `json:"owner_ext"`
	// now user
	ReqUser *ReqUser `json:"req_user,omitempty"`
	// tag info
	Tag []*tag.Tag `json:"tag,omitempty"`
	// movie
	Movie *bangumi.Movie `json:"movie,omitempty"`
	// bangumi
	Season *bangumi.Season `json:"season,omitempty"`
	// bp
	Bp json.RawMessage `json:"bp,omitempty"`
	// elec
	Elec *elec.Info `json:"elec,omitempty"`
	// history
	History *History `json:"history,omitempty"`
	// audio
	Audio *Audio `json:"audio,omitempty"`
	// contribute data
	Contributions []*Contribution `json:"contributions,omitempty"`
	// relate data
	Relates     []*Relate `json:"relates,omitempty"`
	ReturnCode  string    `json:"-"`
	UserFeature string    `json:"-"`
	IsRec       int8      `json:"-"`
	// dislike reason
	Dislikes []*Dislike `json:"dislike_reasons,omitempty"`
	// dm
	DMSeg int `json:"dm_seg,omitempty"`
	// paster
	Paster *resmdl.Paster `json:"paster,omitempty"`
	// player_icon
	PlayerIcon *PlayerIcon `json:"player_icon,omitempty"`
	// vip_active
	VIPActive string `json:"vip_active,omitempty"`
	// cm
	CMs []*CM `json:"cms,omitempty"`
	// cm config
	CMConfig *CMConfig `json:"cm_config,omitempty"`
	// asset
	Asset       *Asset          `json:"asset,omitempty"`
	ActivityURL string          `json:"activity_url,omitempty"`
	Bgm         []*creative.Bgm `json:"bgm,omitempty"`
	Staff       []*Staff        `json:"staff,omitempty"`
}

View struct

type ViewStatic

type ViewStatic struct {
	*archive.Archive3
	Pages []*Page `json:"pages,omitempty"`
}

ViewStatic struct

type VipPlayURL

type VipPlayURL struct {
	From  string `json:"from"`
	Ts    int64  `json:"ts"`
	Aid   int64  `json:"aid"`
	Cid   int64  `json:"cid"`
	Mid   int64  `json:"mid"`
	VIP   int    `json:"vip"`
	SVIP  int    `json:"svip"`
	Owner int    `json:"owner"`
	Fcs   string `json:"fcs"`
}

VipPlayURL playurl token struct.

Jump to

Keyboard shortcuts

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