Documentation ¶
Index ¶
- Constants
- func BusinessByTP(b int8) string
- func CheckBusiness(bs string) (tp int8, err error)
- func MustCheckBusiness(bs string) (tp int8, err error)
- type ArcToView
- type ArgClear
- type ArgCursor
- type ArgDelete
- type ArgHistories
- type ArgHistory
- type ArgPos
- type ArgPro
- type Bangumi
- type BangumiSeason
- type Histories
- type History
- type Merge
- type Resource
- type Season
- type ToView
- type ToViews
- type Video
- type WebArcToView
Constants ¶
View Source
const ( // TypeUnknown unkown TypeUnknown = int8(-1) // TypeOffline offline TypeOffline = int8(0) // TypeBangumi bangumi TypeBangumi = int8(1) // TypeMovie movie TypeMovie = int8(2) // TypeUGC UGC TypeUGC = int8(3) // TypePGC PGC TypePGC = int8(4) // TypeArticle Article TypeArticle = int8(5) // TypeLive Live TypeLive = int8(6) // TypeCorpus corpus TypeCorpus = int8(7) // TypeComic comic TypeComic = int8(8) // SubTypeOffline archive subtype SubTypeOffline = int8(1) // SubTypeBangumi bangumi SubTypeBangumi = int8(1) // SubTypeFilm film SubTypeFilm = int8(2) // SubTypeDoc documentary SubTypeDoc = int8(3) // SubTypeNation nation SubTypeNation = int8(4) // SubTypeTV TV SubTypeTV = int8(5) // DeviceUnknown unknown DeviceUnknown = int8(0) // DeviceIphone iphoneTV DeviceIphone = int8(1) // DevicePC PC DevicePC = int8(2) // DeviceAndroid android DeviceAndroid = int8(3) // DeviceAndroidTV android TV DeviceAndroidTV = int8(33) // DeviceIpad ipad DeviceIpad = int8(4) // DeviceWP8 WP8 DeviceWP8 = int8(5) // DeviceUWP UWP DeviceUWP = int8(6) // ShadowUnknown unknown ShadowUnknown = int64(-1) // ShadowOff off ShadowOff = int64(0) // ShadowOn on ShadowOn = int64(1) // ProComplete progress complete ProComplete = int64(-1) // PlatformAndroid platform android. PlatformAndroid string = "android" // PlatformIOS platform ios. PlatformIOS string = "ios" // DevicePad device pad. DevicePad string = "pad" // MobileAppAndroidTV mobile app android tv. MobileAppAndroidTV string = "android_tv_yst" HistoryLog = 171 HistoryClear = "history_clear" HistoryClearTyp = "history_clear_%s" ToviewClear = "toview_clear" )
const .
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArcToView ¶
type ArcToView struct { *archive.Archive3 Page *archive.Page3 `json:"page,omitempty"` Count int `json:"count"` Cid int64 `json:"cid"` Progress int64 `json:"progress"` AddTime int64 `json:"add_at"` }
ArcToView toview video.
type ArgCursor ¶
type ArgCursor struct { Mid int64 Max int64 TP int8 // history business Business string ViewAt int64 // filter business, blank means all business Businesses []string Ps int RealIP string }
ArgCursor arg.
type ArgHistories ¶
ArgHistories arg.
type ArgHistory ¶
ArgHistory arg.
type Bangumi ¶
type Bangumi struct { Epid int64 `json:"ep_id"` Title string `json:"title"` LongTitle string `json:"long_title"` EpisodeStatus int `json:"episode_status"` Follow int `json:"follow"` Cover string `json:"cover"` Season *Season `json:"season"` }
Bangumi bangumi.
type BangumiSeason ¶
type BangumiSeason struct { ID int64 `json:"season_id"` Epid int64 `json:"episode_id"` EpidType int64 `json:"season_type"` }
BangumiSeason season.
type History ¶
type History struct { Mid int64 `json:"mid,omitempty"` Aid int64 `json:"aid"` Sid int64 `json:"sid,omitempty"` Epid int64 `json:"epid,omitempty"` TP int8 `json:"tp,omitempty"` Business string `json:"business"` STP int8 `json:"stp,omitempty"` // sub_type Cid int64 `json:"cid,omitempty"` DT int8 `json:"dt,omitempty"` Pro int64 `json:"pro,omitempty"` Unix int64 `json:"view_at"` }
History video hisotry info.
func (History) ConvertServiceType ¶
ConvertServiceType .
type Resource ¶
type Resource struct { Mid int64 `json:"mid,omitempty"` Oid int64 `json:"oid"` Sid int64 `json:"sid,omitempty"` Epid int64 `json:"epid,omitempty"` TP int8 `json:"tp,omitempty"` STP int8 `json:"stp,omitempty"` // sub_type Cid int64 `json:"cid,omitempty"` Business string `json:"business"` DT int8 `json:"dt,omitempty"` Pro int64 `json:"pro,omitempty"` Unix int64 `json:"view_at"` }
Resource video hisotry info .
type Season ¶
type Season struct { ID int64 `json:"season_id"` Title string `json:"title"` SeasonStatus int `json:"season_status"` IsFinish int `json:"is_finish"` TotalCount int32 `json:"total_count"` NewestEpid int64 `json:"newest_ep_id"` NewestEpIndex string `json:"newest_ep_index"` SeasonType int `json:"season_type,omitempty"` Mode int `json:"mode,omitempty"` }
Season season.
type Video ¶
type Video struct { *archive.Archive3 Favorite bool `json:"favorite"` // video favorite TP int8 `json:"type"` // video type STP int8 `json:"sub_type"` // video type DT int8 `json:"device"` // device type Page *archive.Page3 `json:"page,omitempty"` Count int `json:"count,omitempty"` BangumiInfo *Bangumi `json:"bangumi,omitempty"` Progress int64 `json:"progress"` ViewAt int64 `json:"view_at"` }
Video video history.
Click to show internal directories.
Click to hide internal directories.