history

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dur

type Dur struct {
	Oid      int64
	Duration int64
}

Dur is duration struct

type HisEP

type HisEP struct {
	EPID      int64  `json:"ep_id"`
	Cover     string `json:"cover"`
	Title     string `json:"title"`
	LongTitle string `json:"long_title"`
}

HisEP is history EP struct

type HisMC

type HisMC struct {
	MID        int64
	Res        []*HisRes
	LastViewAt int64 // timestamp the first view_at of cursor
}

HisMC is history structure in MC

type HisPage

type HisPage struct {
	CID  int64  `json:"cid"`
	Part string `json:"part"`
	Page int    `json:"page"`
}

HisPage is history page struct

type HisRes

type HisRes struct {
	Mid          int64              `json:"mid,omitempty"`
	Oid          int64              `json:"oid"` //
	Sid          int64              `json:"season_id,omitempty"`
	Epid         int64              `json:"epid,omitempty"`
	Cid          int64              `json:"cid,omitempty"`
	Business     string             `json:"-"`
	DT           int8               `json:"dt,omitempty"`
	Pro          int64              `json:"pro"`
	PageDuration int64              `json:"duration"`
	Unix         int64              `json:"view_at"`
	Type         int                `json:"type"`              // 1=pgc, 2=ugc
	Title        string             `json:"title"`             // common
	Cover        string             `json:"cover"`             // common
	Page         *HisPage           `json:"page,omitempty"`    // ugc page
	EPMeta       *HisEP             `json:"bangumi,omitempty"` // pgc ep
	CornerMark   *model.SnVipCorner `json:"cornermark"`
}

HisRes is the history resource model

type ReqCombineHis

type ReqCombineHis struct {
	Mid    int64
	OriRes []*hismodel.Resource
	OkSids map[int64]int
	OkAids map[int64]int
}

ReqCombineHis is the request for the combineHis function

type RespCacheHis

type RespCacheHis struct {
	Filtered []*HisRes
	Res      []*hismodel.Resource
	UseCache bool
}

RespCacheHis is the the response of cacheHis function

Jump to

Keyboard shortcuts

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