Documentation
¶
Index ¶
- Variables
- func HttpRequest(urlStr string, method string, headers map[string]string, ...) (*http.Response, error)
- type Actor
- type AdData
- type ApiClient
- func (c *ApiClient) CategoryRanks(mediaType MediaType, start int, count int) (CategoryRanksResult, error)
- func (c *ApiClient) Celebrities(mediaType MediaType, id string) (CelebritiesResult, error)
- func (c *ApiClient) ComingSoon(mediaType MediaType, start int, count int, sort string, area string) (ComingSoonResult, error)
- func (c *ApiClient) Detail(mediaType MediaType, id string) (DetailResult, error)
- func (c *ApiClient) DouList(id string) (DouListResult, error)
- func (c *ApiClient) DouListItems(id string, start int, count int) (DouListItemsResult, error)
- func (c *ApiClient) HotCities() (HotCitiesResult, error)
- func (c *ApiClient) Interests(mediaType MediaType, id string) (InterestsResult, error)
- func (c *ApiClient) Modules(mediaType MediaType) (Modules, error)
- func (c *ApiClient) MovieHotGaia(locId string, start int, count int, sort string) (HotGaiaResult, error)
- func (c *ApiClient) MovieMovieShowing(locId string, start int, count int, sort string) (MovieShowingResult, error)
- func (c *ApiClient) Photos(mediaType MediaType, id string) (PhotosResult, error)
- func (c *ApiClient) RankList(mediaType MediaType, start int, count int) (RankList, error)
- func (c *ApiClient) Rating(mediaType MediaType, id string) (RatingResult, error)
- func (c *ApiClient) Recommend(mediaType MediaType, tags []string, sort string, start int, count int) (RecommendResult, error)
- func (c *ApiClient) Recommendations(mediaType MediaType, id string) ([]RecommendationsItem, error)
- func (c *ApiClient) Reviews(mediaType MediaType, id string) (ReviewsResult, error)
- func (c *ApiClient) Search(q string, start int, count int) (SearchResult, error)
- func (c *ApiClient) SearchWx(q string, start int, count int) (WxResult, error)
- func (c *ApiClient) SkyNetNewPlayLists(category string, mediaType MediaType, start int, count int) (SkyNetNewPlayListsResult, error)
- func (c *ApiClient) SubjectCollection(id string) (SubjectCollectionResult, error)
- func (c *ApiClient) SubjectCollectionItems(id string, start int, count int) (SubjectCollectionItemsResult, error)
- func (c *ApiClient) SubjectCollectionItemsWith(id SubjectCollectionId, start int, count int) (SubjectCollectionItemsResult, error)
- func (c *ApiClient) Tag(mediaType MediaType) (TagResult, error)
- func (c *ApiClient) Trailers(mediaType MediaType, id string) (TrailersResult, error)
- func (c *ApiClient) YearRanks(mediaType MediaType, year int) (YearRanks, error)
- type ApiResult
- type Author
- type Avatar
- type BackgroundColorScheme
- type Badge
- type CategoryRanksResult
- type CelebritiesResult
- type Collect
- type ColorScheme
- type ComingSoon
- type ComingSoonData
- type ComingSoonResult
- type ComingSoonSubject
- type Comment
- type Cover
- type Detail
- type DetailCover
- type DetailResult
- type Director
- type Display
- type Do
- type DouListItem
- type DouListItemsResult
- type DouListResult
- type Filter
- type FilterItem
- type Highlight
- type HonorInfo
- type HotCitiesResult
- type HotGaiaResult
- type Icon
- type Image
- type ImageDetail
- type ImageSize
- type Interest
- type InterestsResult
- type InterestsRssInfo
- type InterestsType
- type Later
- type Location
- type MediaType
- type MergedTab
- type MergedTabGroup
- type MergedTabItem
- type Modules
- type MovieItem
- type MovieModules
- type MovieRecommendCategory
- type MovieShowingResult
- type NowPlaying
- type Option
- type Owner
- type Photo
- type PhotosResult
- type Pic
- type Picture
- type PlayableFilter
- type RankItem
- type RankList
- type Rating
- type RatingResult
- type RecommendChartItem
- type RecommendItem
- type RecommendResult
- type RecommendationsItem
- type RelatedChartItem
- type Review
- type ReviewPhoto
- type ReviewsResult
- type SearchDouListItem
- type SearchItem
- type SearchResult
- type SearchSubject
- type SearchSubjectsType
- type SelectedChartCollection
- type SelectedChartCollections
- type SelectedCollection
- type SelectedCollections
- type SetUserVendor
- type SharingInfo
- type SkyNetModel
- type SkyNetNewPlayListsItem
- type SkyNetNewPlayListsResult
- type Sort
- type SortOption
- type SubModule
- type Subject
- type SubjectAd
- type SubjectCollection
- type SubjectCollectionBoard
- type SubjectCollectionBoardItem
- type SubjectCollectionBoards
- type SubjectCollectionId
- type SubjectCollectionItem
- type SubjectCollectionItemsResult
- type SubjectCollectionResult
- type SubjectData
- type SubjectEntrance
- type SubjectEntrances
- type SubjectSuggestion
- type SubjectUnions
- type Tab
- type Tag
- type TagResult
- type Target
- type Top250
- type Trailer
- type TrailerItem
- type TrailersResult
- type TvRecommendCategory
- type TypeRank
- type UnionData
- type User
- type UserInfo
- type VariableModule
- type WebClient
- func (c *WebClient) AnimeHot(pageLimit int, pageStart int) ([]SearchSubject, error)
- func (c *WebClient) Collect(peopleId string, start int) ([]Collect, error)
- func (c *WebClient) Detail(id string) (Detail, error)
- func (c *WebClient) Do(peopleId string, start int) ([]Do, error)
- func (c *WebClient) InterestsRss(peopleId string) ([]InterestsRssInfo, error)
- func (c *WebClient) Later() ([]Later, error)
- func (c *WebClient) MovieHot(pageLimit int, pageStart int) ([]SearchSubject, error)
- func (c *WebClient) MovieNew(pageLimit int, pageStart int) ([]SearchSubject, error)
- func (c *WebClient) MovieRate(pageLimit int, pageStart int) ([]SearchSubject, error)
- func (c *WebClient) NowPlaying() ([]NowPlaying, error)
- func (c *WebClient) SearchSubjects(mediaType MediaType, tag string, pageLimit int, pageStart int) ([]SearchSubject, error)
- func (c *WebClient) SearchSubjectsWith(typ SearchSubjectsType, pageLimit int, pageStart int) ([]SearchSubject, error)
- func (c *WebClient) Top250() ([]Top250, error)
- func (c *WebClient) TvHot(pageLimit int, pageStart int) ([]SearchSubject, error)
- func (c *WebClient) User(peopleId string) (UserInfo, error)
- func (c *WebClient) VarietyHot(pageLimit int, pageStart int) ([]SearchSubject, error)
- func (c *WebClient) Wish(peopleId string, start int) ([]Wish, error)
- type Wish
- type WishFriends
- type WxResult
- type YearRanks
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SearchSubjectsTypeMovieNew 最新电影 SearchSubjectsTypeMovieNew = SearchSubjectsType{ MediaType: Movie, Tag: "最新", } // SearchSubjectsTypeMovieHot 热门电影 SearchSubjectsTypeMovieHot = SearchSubjectsType{ MediaType: Movie, Tag: "热门", } // SearchSubjectsTypeMovieRate 豆瓣高分 SearchSubjectsTypeMovieRate = SearchSubjectsType{ MediaType: Movie, Tag: "豆瓣高分", } // SearchSubjectsTypeTvHot 热门电视剧 SearchSubjectsTypeTvHot = SearchSubjectsType{ MediaType: Tv, Tag: "热门", } // SearchSubjectsTypeAnimeHot 热门动漫 SearchSubjectsTypeAnimeHot = SearchSubjectsType{ MediaType: Tv, Tag: "日本动画", } // SearchSubjectsTypeVarietyHot 热门综艺 SearchSubjectsTypeVarietyHot = SearchSubjectsType{ MediaType: Tv, Tag: "综艺", } )
View Source
var BLDocumentaryOrderOptions = []Option{
{Value: "0", Name: "更新时间"},
{Value: "6", Name: "上映时间"},
{Value: "4", Name: "最高评分"},
{Value: "2", Name: "播放数量"},
{Value: "1", Name: "弹幕数量"},
}
View Source
var BLDocumentaryStyleIdOptions = []Option{
{Value: "-1", Name: "全部"},
{Value: "10033", Name: "历史"},
{Value: "10045", Name: "美食"},
{Value: "10065", Name: "人文"},
{Value: "10066", Name: "科技"},
{Value: "10067", Name: "探险"},
{Value: "10068", Name: "宇宙"},
{Value: "10069", Name: "萌宠"},
{Value: "10070", Name: "社会"},
{Value: "10071", Name: "动物"},
{Value: "10072", Name: "自然"},
{Value: "10073", Name: "医疗"},
{Value: "10074", Name: "军事"},
{Value: "10064", Name: "灾难"},
{Value: "100075", Name: "罪案"},
{Value: "10076", Name: "神秘"},
{Value: "10077", Name: "旅行"},
{Value: "10038", Name: "运动"},
{Value: "-10", Name: "电影"},
}
View Source
var BLGuoManOrderOptions = []Option{
{Value: "0", Name: "更新时间"},
{Value: "6", Name: "上映时间"},
{Value: "4", Name: "最高评分"},
{Value: "2", Name: "播放数量"},
{Value: "1", Name: "弹幕数量"},
}
View Source
var BLGuoManStyleIdOptions = []Option{
{Value: "-1", Name: "全部"},
{Value: "10010", Name: "原创"},
{Value: "10011", Name: "漫画改"},
{Value: "10012", Name: "小说改"},
{Value: "10013", Name: "游戏改"},
{Value: "10014", Name: "动态漫"},
{Value: "10015", Name: "布袋戏"},
{Value: "10016", Name: "热血"},
{Value: "10018", Name: "奇幻"},
{Value: "10019", Name: "玄幻"},
{Value: "10020", Name: "战斗"},
{Value: "10021", Name: "搞笑"},
{Value: "10078", Name: "武侠"},
{Value: "10022", Name: "日常"},
{Value: "10023", Name: "科幻"},
{Value: "10024", Name: "萌系"},
{Value: "10025", Name: "治愈"},
{Value: "10057", Name: "悬疑"},
{Value: "10026", Name: "校园"},
{Value: "10027", Name: "少儿"},
{Value: "10028", Name: "泡面"},
{Value: "10029", Name: "恋爱"},
{Value: "10030", Name: "少女"},
{Value: "10031", Name: "魔法"},
{Value: "10033", Name: "历史"},
{Value: "10035", Name: "机战"},
{Value: "10036", Name: "神魔"},
{Value: "10037", Name: "声控"},
{Value: "10038", Name: "运动"},
{Value: "10039", Name: "励志"},
{Value: "10040", Name: "音乐"},
{Value: "10041", Name: "推理"},
{Value: "10042", Name: "社团"},
{Value: "10043", Name: "智斗"},
{Value: "10044", Name: "催泪"},
{Value: "10045", Name: "美食"},
{Value: "10046", Name: "偶像"},
{Value: "10047", Name: "乙女"},
{Value: "10048", Name: "职场"},
{Value: "10049", Name: "古风"},
}
View Source
var BLVarietyOrderOptions = []Option{
{Value: "0", Name: "更新时间"},
{Value: "6", Name: "上映时间"},
{Value: "4", Name: "最高评分"},
{Value: "2", Name: "播放数量"},
{Value: "1", Name: "弹幕数量"},
}
View Source
var BLVarietyStyleIdOptions = []Option{
{Value: "-1", Name: "全部"},
{Value: "10040", Name: "音乐"},
{Value: "10090", Name: "访谈"},
{Value: "10091", Name: "脱口秀"},
{Value: "10092", Name: "真人秀"},
{Value: "10094", Name: "选秀"},
{Value: "10045", Name: "美食"},
{Value: "10095", Name: "旅游"},
{Value: "10098", Name: "晚会"},
{Value: "10096", Name: "演唱会"},
{Value: "10084", Name: "情感"},
{Value: "10051", Name: "喜剧"},
{Value: "10097", Name: "亲子"},
{Value: "10100", Name: "文化"},
{Value: "10048", Name: "职场"},
{Value: "10069", Name: "萌宠"},
{Value: "10099", Name: "养成"},
}
View Source
var DBMovieCountryOptions = []Option{ Option{Value: "", Name: "全部地区"}, Option{Value: "华语", Name: "华语"}, Option{Value: "韩国", Name: "韩国"}, Option{Value: "日本", Name: "日本"}, Option{Value: "中国大陆", Name: "中国大陆"}, Option{Value: "美国", Name: "美国"}, Option{Value: "中国香港", Name: "中国香港"}, Option{Value: "中国台湾", Name: "中国台湾"}, Option{Value: "英国", Name: "英国"}, Option{Value: "法国", Name: "法国"}, Option{Value: "德国", Name: "德国"}, Option{Value: "意大利", Name: "意大利"}, Option{Value: "西班牙", Name: "西班牙"}, Option{Value: "印度", Name: "印度"}, Option{Value: "泰国", Name: "泰国"}, Option{Value: "俄罗斯", Name: "俄罗斯"}, Option{Value: "加拿大", Name: "加拿大"}, Option{Value: "澳大利亚", Name: "澳大利亚"}, Option{Value: "爱尔兰", Name: "爱尔兰"}, Option{Value: "瑞典", Name: "瑞典"}, Option{Value: "巴西", Name: "巴西"}, Option{Value: "丹麦", Name: "丹麦"}, }
View Source
var DBMovieSortOptions = []Option{ Option{Value: "", Name: "默认"}, Option{Value: "U", Name: "综合排序"}, Option{Value: "T", Name: "近期热度"}, Option{Value: "R", Name: "首播时间"}, Option{Value: "S", Name: "高分优先"}, }
View Source
var DBMovieTagsOptions = []Option{ Option{Value: "", Name: "全部"}, Option{Value: "喜剧", Name: "喜剧"}, Option{Value: "爱情", Name: "爱情"}, Option{Value: "动作", Name: "动作"}, Option{Value: "科幻", Name: "科幻"}, Option{Value: "动画", Name: "动画"}, Option{Value: "悬疑", Name: "悬疑"}, Option{Value: "犯罪", Name: "犯罪"}, Option{Value: "惊悚", Name: "惊悚"}, Option{Value: "冒险", Name: "冒险"}, Option{Value: "奇幻", Name: "奇幻"}, Option{Value: "恐怖", Name: "恐怖"}, Option{Value: "战争", Name: "战争"}, Option{Value: "武侠", Name: "武侠"}, Option{Value: "灾难", Name: "灾难"}, }
View Source
var DBTvPlatforms = []Option{
{Value: "", Name: "全部平台"},
{Value: "腾讯视频", Name: "腾讯视频"},
{Value: "爱奇艺", Name: "爱奇艺"},
{Value: "优酷", Name: "优酷"},
{Value: "湖南卫视", Name: "湖南卫视"},
}
View Source
var DBTvTagOptions = []Option{
{Value: "", Name: "全部"},
{Value: "华语", Name: "华语"},
{Value: "中国大陆", Name: "中国大陆"},
{Value: "中国香港", Name: "中国香港"},
{Value: "中国台湾", Name: "中国台湾"},
{Value: "欧美", Name: "欧美"},
{Value: "韩国", Name: "韩国"},
{Value: "日本", Name: "日本"},
{Value: "印度", Name: "印度"},
{Value: "泰国", Name: "泰国"},
}
View Source
var DBTvTypeOptions = []Option{
{Value: "", Name: "全部类型"},
{Value: "电视剧", Name: "全部剧集"},
{Value: "综艺", Name: "全部综艺"},
{Value: "动画", Name: "动画"},
{Value: "爱情", Name: "爱情"},
{Value: "喜剧", Name: "喜剧"},
{Value: "悬疑", Name: "悬疑"},
{Value: "武侠", Name: "武侠"},
{Value: "古装", Name: "古装"},
{Value: "家庭", Name: "家庭"},
{Value: "犯罪", Name: "犯罪"},
{Value: "科幻", Name: "科幻"},
{Value: "恐怖", Name: "恐怖"},
{Value: "历史", Name: "历史"},
{Value: "战争", Name: "战争"},
{Value: "动作", Name: "动作"},
{Value: "冒险", Name: "冒险"},
{Value: "传记", Name: "传记"},
{Value: "剧情", Name: "剧情"},
{Value: "奇幻", Name: "奇幻"},
{Value: "惊悚", Name: "惊悚"},
{Value: "灾难", Name: "灾难"},
}
View Source
var DBYearOptions = []Option{
{Value: "", Name: "全部年代"},
{Value: "2024", Name: "2024"},
{Value: "2023", Name: "2023"},
{Value: "2022", Name: "2022"},
{Value: "2021", Name: "2021"},
{Value: "2020", Name: "2020"},
{Value: "2019", Name: "2019"},
{Value: "2010年代", Name: "2010年代"},
{Value: "2000年代", Name: "2000年代"},
{Value: "90年代", Name: "90年代"},
{Value: "80年代", Name: "80年代"},
{Value: "70年代", Name: "70年代"},
{Value: "60年代", Name: "60年代"},
{Value: "更早", Name: "更早"},
}
View Source
var MediaTypes = []MediaType{ Movie, Tv, }
View Source
var Movie = MediaType{
Code: "movie",
Name: "电影",
}
View Source
var SkyNetNewPlaylistsOptions = []Option{
{"all", "全部"},
{"official", "豆瓣片单"},
{"selected", "精选"},
{"classical", "经典"},
{"prize", "获奖"},
{"high_score", "高分"},
{"movie_list", "榜单"},
{"dark_horse", "冷门佳作"},
{"topic", "主题"},
{"director", "导演"},
{"actor", "演员"},
{"series", "系列"},
{"chinese", "华语"},
{"western", "欧美"},
{"japanese", "日本"},
{"korea", "韩国"},
{"comedy", "喜剧"},
{"action", "动作"},
{"love", "爱情"},
{"science_fiction", "科幻"},
{"cartoon", "动画"},
{"mystery", "悬疑"},
{"panic", "惊悚"},
{"horrible", "恐怖"},
{"criminal", "犯罪"},
{"lgbt", "同性"},
{"war", "战争"},
{"fantasy", "奇幻"},
{"erotica", "情色"},
{"music", "音乐"},
{"documentary", "纪录片"},
{"cure", "治愈"},
{"art", "艺术"},
{"dark_humor", "黑色幽默"},
{"youth", "青春"},
{"female", "女性"},
{"real_event", "真实事件改编"},
{"violence", "暴力"},
{"black_white", "黑白"},
{"food", "美食"},
{"travel", "旅行"},
{"child", "儿童"},
{"humanity", "人性"},
{"family", "家庭"},
{"literary_art", "文艺"},
{"novel", "小说改编"},
{"moving", "感人"},
{"inspiration", "励志"},
}
View Source
var TMDBMovieSortByOptions = []Option{
{Value: "", Name: "默认"},
{Value: "popularity.desc", Name: "近期热度"},
{Value: "vote_average.desc", Name: "高分优先"},
{Value: "release_date.desc", Name: "首播时间"},
}
View Source
var TMDBMovieWithGenresOptions = []Option{
{Value: "", Name: "全部"},
{Value: "12", Name: "冒险"},
{Value: "16", Name: "动画"},
{Value: "35", Name: "喜剧"},
{Value: "80", Name: "犯罪"},
{Value: "18", Name: "剧情"},
{Value: "14", Name: "奇幻"},
{Value: "27", Name: "恐怖"},
{Value: "9648", Name: "悬疑"},
{Value: "10749", Name: "爱情"},
{Value: "878", Name: "科幻"},
{Value: "53", Name: "惊悚"},
{Value: "10752", Name: "战争"},
}
View Source
var TMDBMovieWithOriginalLanguageOptions = []Option{
{Value: "", Name: "全部"},
{Value: "zh", Name: "中文"},
{Value: "en", Name: "英语"},
{Value: "ja", Name: "日语"},
{Value: "ko", Name: "韩语"},
{Value: "fr", Name: "法语"},
{Value: "de", Name: "德语"},
{Value: "ru", Name: "俄语"},
{Value: "hi", Name: "印地语"},
}
View Source
var TMDBTvSortByOptions = []Option{
{Value: "", Name: "默认"},
{Value: "popularity.desc", Name: "近期热度"},
{Value: "vote_average.desc", Name: "高分优先"},
{Value: "first_air_date.desc", Name: "首播时间"},
}
View Source
var TMDBTvWithGenresOptions = []Option{
{Value: "", Name: "全部"},
{Value: "16", Name: "动画"},
{Value: "35", Name: "喜剧"},
{Value: "80", Name: "犯罪"},
{Value: "18", Name: "剧情"},
{Value: "9648", Name: "悬疑"},
{Value: "10764", Name: "真人秀"},
{Value: "10765", Name: "科幻"},
}
View Source
var TMDBTvWithOriginalLanguageOptions = []Option{
{Value: "", Name: "全部"},
{Value: "zh", Name: "中文"},
{Value: "en", Name: "英语"},
{Value: "ja", Name: "日语"},
{Value: "ko", Name: "韩语"},
{Value: "fr", Name: "法语"},
{Value: "de", Name: "德语"},
{Value: "ru", Name: "俄语"},
{Value: "hi", Name: "印地语"},
}
View Source
var Tv = MediaType{
Code: "tv",
Name: "电视剧",
}
Functions ¶
Types ¶
type Actor ¶
type Actor struct {
Name string `json:"name" mapstructure:"name"`
Roles []string `json:"roles" mapstructure:"roles"`
Title string `json:"title" mapstructure:"title"`
URL string `json:"url" mapstructure:"url"`
User *User `json:"user" mapstructure:"user"`
Character string `json:"character" mapstructure:"character"`
URI string `json:"uri" mapstructure:"uri"`
SimpleCharacter string `json:"simpleCharacter" mapstructure:"simple_character"`
Avatar Avatar `json:"avatar" mapstructure:"avatar"`
SharingURL string `json:"sharingURL" mapstructure:"sharing_url"`
Type string `json:"type" mapstructure:"type"`
ID string `json:"id" mapstructure:"id"`
LatinName string `json:"latinName" mapstructure:"latin_name"`
}
type ApiClient ¶
type ApiClient struct {
}
func NewApiClient ¶
func NewApiClient() *ApiClient
func (*ApiClient) CategoryRanks ¶
func (*ApiClient) Celebrities ¶
func (c *ApiClient) Celebrities(mediaType MediaType, id string) (CelebritiesResult, error)
func (*ApiClient) ComingSoon ¶
func (*ApiClient) Detail ¶
func (c *ApiClient) Detail(mediaType MediaType, id string) (DetailResult, error)
func (*ApiClient) DouListItems ¶
func (*ApiClient) HotCities ¶
func (c *ApiClient) HotCities() (HotCitiesResult, error)
func (*ApiClient) Interests ¶
func (c *ApiClient) Interests(mediaType MediaType, id string) (InterestsResult, error)
func (*ApiClient) MovieHotGaia ¶
func (*ApiClient) MovieMovieShowing ¶
func (*ApiClient) Photos ¶
func (c *ApiClient) Photos(mediaType MediaType, id string) (PhotosResult, error)
func (*ApiClient) Rating ¶
func (c *ApiClient) Rating(mediaType MediaType, id string) (RatingResult, error)
func (*ApiClient) Recommendations ¶
func (c *ApiClient) Recommendations(mediaType MediaType, id string) ([]RecommendationsItem, error)
func (*ApiClient) Reviews ¶
func (c *ApiClient) Reviews(mediaType MediaType, id string) (ReviewsResult, error)
func (*ApiClient) SkyNetNewPlayLists ¶
func (c *ApiClient) SkyNetNewPlayLists(category string, mediaType MediaType, start int, count int) (SkyNetNewPlayListsResult, error)
SkyNetNewPlayLists 影视片单
func (*ApiClient) SubjectCollection ¶
func (c *ApiClient) SubjectCollection(id string) (SubjectCollectionResult, error)
func (*ApiClient) SubjectCollectionItems ¶
func (*ApiClient) SubjectCollectionItemsWith ¶
func (c *ApiClient) SubjectCollectionItemsWith(id SubjectCollectionId, start int, count int) (SubjectCollectionItemsResult, error)
type ApiResult ¶
type ApiResult struct {
Count int `json:"count" mapstructure:"count"`
Start int `json:"start" mapstructure:"start"`
Total int `json:"total" mapstructure:"total"`
}
api 相关
type Author ¶
type Author struct {
Loc Location `json:"loc" mapstructure:"loc"`
Kind string `json:"kind" mapstructure:"kind"`
Name string `json:"name" mapstructure:"name"`
RegYear int `json:"regYear" mapstructure:"reg_year"`
AvatarSideIconType int `json:"avatarSideIconType" mapstructure:"avatar_side_icon_type"`
URL string `json:"url" mapstructure:"url"`
ID string `json:"id" mapstructure:"id"`
RegTime string `json:"regTime" mapstructure:"reg_time"`
URI string `json:"uri" mapstructure:"uri"`
Avatar string `json:"avatar" mapstructure:"avatar"`
IsClub bool `json:"isClub" mapstructure:"is_club"`
Type string `json:"type" mapstructure:"type"`
AvatarSideIcon string `json:"avatarSideIcon" mapstructure:"avatar_side_icon"`
UID string `json:"uid" mapstructure:"uid"`
}
type BackgroundColorScheme ¶
type BackgroundColorScheme struct {
IsDark bool `mapstructure:"is_dark"`
PrimaryColorLight string `mapstructure:"primary_color_light"`
SecondaryColor string `mapstructure:"secondary_color"`
PrimaryColorDark string `mapstructure:"primary_color_dark"`
}
api 相关
type Badge ¶
type Badge struct {
Status int `json:"status" mapstructure:"status"`
MinDoneCnt int `json:"minDoneCnt" mapstructure:"min_done_cnt"`
Target *string `json:"target" mapstructure:"target"`
Title string `json:"title" mapstructure:"title"`
Series string `json:"series" mapstructure:"series"`
URI string `json:"uri" mapstructure:"uri"`
IsNew bool `json:"isNew" mapstructure:"is_new"`
Chart *string `json:"chart" mapstructure:"chart"`
BgColor string `json:"bgColor" mapstructure:"bg_color"`
UserBadgeID *string `json:"userBadgeId" mapstructure:"user_badge_id"`
ReceivedAt *string `json:"receivedAt" mapstructure:"received_at"`
ID int `json:"id" mapstructure:"id"`
Icon Icon `json:"icon" mapstructure:"icon"`
}
type CategoryRanksResult ¶
type CategoryRanksResult struct {
ApiResult `mapstructure:",squash"`
SelectedCollections []SelectedCollection `json:"selectedCollections" mapstructure:"selected_collections"`
}
type CelebritiesResult ¶
type Collect ¶
type Collect struct {
Title string `mapstructure:"title"`
Cover string `mapstructure:"cover"`
Url string `mapstructure:"url"`
}
web 相关
type ColorScheme ¶
type ColorScheme struct {
IsDark bool `json:"isDark" mapstructure:"is_dark"`
PrimaryColorLight string `json:"primaryColorLight" mapstructure:"primary_color_light"`
SecondaryColor string `json:"secondaryColor" mapstructure:"secondary_color"`
PrimaryColorDark string `json:"primaryColorDark" mapstructure:"primary_color_dark"`
BaseColor []float64 `json:"baseColor" mapstructure:"_base_color,omitempty"`
AvgColor []float64 `json:"avgColor" mapstructure:"_avg_color,omitempty"`
}
type ComingSoon ¶
type ComingSoon struct {
URL string `json:"url" mapstructure:"url"`
ModuleName string `json:"moduleName" mapstructure:"module_name"`
Data []ComingSoonData `json:"data" mapstructure:"data"`
URI string `json:"uri" mapstructure:"uri"`
Key string `json:"key" mapstructure:"key"`
}
type ComingSoonData ¶
type ComingSoonData struct {
Title string `json:"title" mapstructure:"title"`
URI string `json:"uri" mapstructure:"uri"`
TotalHot int `json:"total_hot" mapstructure:"total_hot"`
Total int `json:"total" mapstructure:"total"`
Type string `json:"type" mapstructure:"type"`
Items []RankItem `json:"items" mapstructure:"items"`
}
type ComingSoonResult ¶
type ComingSoonResult struct {
ApiResult `mapstructure:",squash"`
Subjects []ComingSoonSubject `json:"subjects" mapstructure:"subjects"`
Filters []struct {
Items []FilterItem `json:"items" mapstructure:"items"`
Type string `json:"type" mapstructure:"type"`
Title string `json:"title" mapstructure:"title"`
}
}
type ComingSoonSubject ¶
type ComingSoonSubject struct {
Rating Rating `json:"rating" mapstructure:"rating"`
ControversyReason string `json:"controversyReason" mapstructure:"controversy_reason"`
PubDate []string `json:"pubDate" mapstructure:"pubdate"`
WishCount int `json:"wishCount" mapstructure:"wish_count"`
Pic Pic `json:"pic" mapstructure:"pic"`
IsShow bool `json:"isShow" mapstructure:"is_show"`
VendorIcons []string `json:"vendorIcons" mapstructure:"vendor_icons"`
Year string `json:"year" mapstructure:"year"`
CardSubtitle string `json:"cardSubtitle" mapstructure:"card_subtitle"`
ID string `json:"id" mapstructure:"id"`
Genres []string `json:"genres" mapstructure:"genres"`
Title string `json:"title" mapstructure:"title"`
Highlights []Highlight `json:"highlights" mapstructure:"highlights"`
IsReleased bool `json:"isReleased" mapstructure:"is_released"`
Actors []Actor `json:"actors" mapstructure:"actors"`
Interest interface{} `json:"interest" mapstructure:"interest"`
ColorScheme ColorScheme `json:"colorScheme" mapstructure:"color_scheme"`
Type string `json:"type" mapstructure:"type"`
HasLinewatch bool `json:"hasLinewatch" mapstructure:"has_linewatch"`
CoverURL string `json:"coverUrl" mapstructure:"cover_url"`
Photos []string `json:"photos" mapstructure:"photos"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
URL string `json:"url" mapstructure:"url"`
ReleaseDate string `json:"releaseDate" mapstructure:"release_date"`
URI string `json:"uri" mapstructure:"uri"`
Subtype string `json:"subtype" mapstructure:"subtype"`
Directors []struct {
Name string `json:"name" mapstructure:"name"`
} `json:"directors" mapstructure:"directors"`
Intro string `json:"intro" mapstructure:"intro"`
NullRatingReason string `json:"nullRatingReason" mapstructure:"null_rating_reason"`
AlbumNoInteract bool `json:"albumNoInteract" mapstructure:"album_no_interact"`
Trailer Trailer `json:"trailer" mapstructure:"trailer"`
}
type Detail ¶
type Detail struct {
Intro string `mapstructure:"intro"`
Cover string `mapstructure:"cover"`
Rate float64 `mapstructure:"rate"`
Imdb string `mapstructure:"imdb"`
Season int `mapstructure:"season"`
EpisodeNum int `mapstructure:"episode_num"`
Title string `mapstructure:"title"`
Year int `mapstructure:"year"`
}
Detail 详情
type DetailCover ¶
type DetailCover struct {
Description string `json:"description" mapstructure:"description"`
Author Author `json:"author" mapstructure:"author"`
URL string `json:"url" mapstructure:"url"`
Image Image `json:"image" mapstructure:"image"`
URI string `json:"uri" mapstructure:"uri"`
CreateTime string `json:"createTime" mapstructure:"create_time"`
Position int `json:"position" mapstructure:"position"`
OwnerURI string `json:"ownerUri" mapstructure:"owner_uri"`
Type string `json:"type" mapstructure:"type"`
ID string `json:"id" mapstructure:"id"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
}
type DetailResult ¶
type DetailResult struct {
Rating Rating `json:"rating" mapstructure:"rating"`
LineTicketURL string `json:"lineTicketUrl" mapstructure:"lineticket_url"`
ControversyReason string `json:"controversyReason" mapstructure:"controversy_reason"`
PubDate []string `json:"pubDate" mapstructure:"pubdate"`
//LastEpisodeNumber *int `json:"lastEpisodeNumber" mapstructure:"last_episode_number"`
//InterestControlInfo *interface{} `json:"interestControlInfo" mapstructure:"interest_control_info"`
Pic Pic `json:"pic" mapstructure:"pic"`
Year int `json:"year" mapstructure:"year"`
VendorCount int `json:"vendorCount" mapstructure:"vendor_count"`
BodyBgColor string `json:"bodyBgColor" mapstructure:"body_bg_color"`
IsTv bool `json:"isTv" mapstructure:"is_tv"`
CardSubtitle string `json:"cardSubtitle" mapstructure:"card_subtitle"`
AlbumNoInteract bool `json:"albumNoInteract" mapstructure:"album_no_interact"`
TicketPriceInfo string `json:"ticketPriceInfo" mapstructure:"ticket_price_info"`
PrePlayableDate *string `json:"prePlayableDate" mapstructure:"pre_playable_date"`
CanRate bool `json:"canRate" mapstructure:"can_rate"`
//HeadInfo *interface{} `json:"headInfo" mapstructure:"head_info"`
//ForumInfo *interface{} `json:"forumInfo" mapstructure:"forum_info"`
//ShareActivities []interface{} `json:"shareActivities" mapstructure:"share_activities"`
//Webisode *interface{} `json:"webisode" mapstructure:"webisode"`
ID string `json:"id" mapstructure:"id"`
GalleryTopicCount int `json:"galleryTopicCount" mapstructure:"gallery_topic_count"`
Languages []string `json:"languages" mapstructure:"languages"`
Genres []string `json:"genres" mapstructure:"genres"`
ReviewCount int `json:"reviewCount" mapstructure:"review_count"`
VariableModules []VariableModule `json:"variableModules" mapstructure:"variable_modules"`
Title string `json:"title" mapstructure:"title"`
Intro string `json:"intro" mapstructure:"intro"`
InterestCmtEarlierTipTitle string `json:"interestCmtEarlierTipTitle" mapstructure:"interest_cmt_earlier_tip_title"`
HasLineWatch bool `json:"hasLineWatch" mapstructure:"has_linewatch"`
CommentCount int `json:"commentCount" mapstructure:"comment_count"`
ForumTopicCount int `json:"forumTopicCount" mapstructure:"forum_topic_count"`
TicketPromoText string `json:"ticketPromoText" mapstructure:"ticket_promo_text"`
//WebviewInfo *interface{} `json:"webviewInfo" mapstructure:"webview_info"`
IsReleased bool `json:"isReleased" mapstructure:"is_released"`
//Vendors []interface{} `json:"vendors" mapstructure:"vendors"`
Actors []Actor `json:"actors" mapstructure:"actors"`
//Interest *interface{} `json:"interest" mapstructure:"interest"`
Subtype string `json:"subtype" mapstructure:"subtype"`
EpisodesCount int `json:"episodesCount" mapstructure:"episodes_count"`
ColorScheme ColorScheme `json:"colorScheme" mapstructure:"color_scheme"`
Type string `json:"type" mapstructure:"type"`
//LineWatches
InfoURL string `json:"infoUrl" mapstructure:"info_url"`
Tags []string `json:"tags" mapstructure:"tags"`
VendorDesc string `json:"vendorDesc" mapstructure:"vendor_desc"`
Durations []string `json:"durations" mapstructure:"durations"`
Cover DetailCover `json:"cover" mapstructure:"cover"`
CoverURL string `json:"coverUrl" mapstructure:"cover_url"`
Trailers []Trailer `json:"trailer" mapstructure:"trailer"`
HeaderBgColor string `json:"headerBgColor" mapstructure:"header_bg_color"`
IsDoubanIntro bool `json:"isDoubanIntro" mapstructure:"is_douban_intro"`
TicketVendorIcons []string `json:"ticketVendorIcons" mapstructure:"ticket_vendor_icons"`
HonorInfos []HonorInfo `json:"honorInfos" mapstructure:"honor_infos"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
//SubjectCollections
RestrictiveIconUrl string `json:"restrictiveIconUrl" mapstructure:"restrictive_icon_url"`
RateInfo string `json:"rateInfo" mapstructure:"rate_info"`
ReleaseDate string `json:"releaseDate" mapstructure:"release_date"`
Countries []string `json:"countries" mapstructure:"countries"`
OriginalTitle string `json:"originalTitle" mapstructure:"original_title"`
URI string `json:"uri" mapstructure:"uri"`
WebisodeCount int `json:"webisodeCount" mapstructure:"webisode_count"`
EpisodesInfo string `json:"episodesInfo" mapstructure:"episodes_info"`
URL string `json:"url" mapstructure:"url"`
Directors []struct {
Name string `json:"name" mapstructure:"name"`
} `json:"directors" mapstructure:"directors"`
IsShow bool `json:"isShow" mapstructure:"is_show"`
VendorIcons []string `json:"vendorIcons" mapstructure:"vendor_icons"`
PreReleaseDesc string `json:"preReleaseDesc" mapstructure:"pre_release_desc"`
Video string `json:"video" mapstructure:"video"`
Aka []string `json:"aka" mapstructure:"aka"`
IsRestrictive bool `json:"isRestrictive" mapstructure:"is_restrictive"`
NullRatingReason string `json:"nullRatingReason" mapstructure:"null_rating_reason"`
}
type Director ¶
type Director struct {
Name string `json:"name" mapstructure:"name"`
Roles []string `json:"roles" mapstructure:"roles"`
Title string `json:"title" mapstructure:"title"`
URL string `json:"url" mapstructure:"url"`
User *string `json:"user" mapstructure:"user"`
Character string `json:"character" mapstructure:"character"`
URI string `json:"uri" mapstructure:"uri"`
SimpleCharacter string `json:"simpleCharacter" mapstructure:"simple_character"`
Avatar Avatar `json:"avatar" mapstructure:"avatar"`
SharingURL string `json:"sharingURL" mapstructure:"sharing_url"`
Type string `json:"type" mapstructure:"type"`
ID string `json:"id" mapstructure:"id"`
LatinName string `json:"latinName" mapstructure:"latin_name"`
}
type Do ¶
type Do struct {
Title string `mapstructure:"title"`
Cover string `mapstructure:"cover"`
Url string `mapstructure:"url"`
}
web 相关
type DouListItem ¶
type DouListItem struct {
Comment string `json:"comment" mapstructure:"comment"`
Rating Rating `json:"rating" mapstructure:"rating"`
Subtitle string `json:"subtitle" mapstructure:"subtitle"`
Title string `json:"title" mapstructure:"title"`
URL string `json:"url" mapstructure:"url"`
TargetID string `json:"targetId" mapstructure:"target_id"`
URI string `json:"uri" mapstructure:"uri"`
CoverURL string `json:"coverURL" mapstructure:"cover_url"`
CreateTime string `json:"createTime" mapstructure:"create_time"`
Type string `json:"type" mapstructure:"type"`
ID string `json:"id" mapstructure:"id"`
}
type DouListItemsResult ¶
type DouListItemsResult struct {
ApiResult `mapstructure:",squash"`
Items []DouListItem `json:"items" mapstructure:"items"`
}
type DouListResult ¶
type DouListResult struct {
IsFollow bool `json:"isFollow" mapstructure:"is_follow"`
ScreenshotTitle string `json:"screenshotTitle" mapstructure:"screenshot_title"`
PlayableCount int `json:"playableCount" mapstructure:"playable_count"`
ScreenshotURL string `json:"screenshotURL" mapstructure:"screenshot_url"`
CreateTime string `json:"createTime" mapstructure:"create_time"`
Owner Owner `json:"owner" mapstructure:"owner"`
ScreenshotType string `json:"screenshotType" mapstructure:"screenshot_type"`
ID string `json:"id" mapstructure:"id"`
Category string `json:"category" mapstructure:"category"`
IsMergedCover bool `json:"isMergedCover" mapstructure:"is_merged_cover"`
Title string `json:"title" mapstructure:"title"`
IsSubjectSelection bool `json:"isSubjectSelection" mapstructure:"is_subject_selection"`
FollowersCount int `json:"followersCount" mapstructure:"followers_count"`
IsPrivate bool `json:"isPrivate" mapstructure:"is_private"`
SharingURL string `json:"sharingURL" mapstructure:"sharing_url"`
Type string `json:"type" mapstructure:"type"`
UpdateTime string `json:"updateTime" mapstructure:"update_time"`
Tags []string `json:"tags" mapstructure:"tags"`
SyncingNote *string `json:"syncingNote" mapstructure:"syncing_note"`
CoverURL string `json:"coverURL" mapstructure:"cover_url"`
HeaderBGImage string `json:"headerBGImage" mapstructure:"header_bg_image"`
DouListType string `json:"douListType" mapstructure:"doulist_type"`
DoneCount int `json:"doneCount" mapstructure:"done_count"`
Desc string `json:"desc" mapstructure:"desc"`
FilterSwitch struct {
RatingRange bool `json:"ratingRange" mapstructure:"rating_range"`
} `json:"filterSwitch" mapstructure:"filter_switch"`
ItemsCount int `json:"itemsCount" mapstructure:"items_count"`
URL string `json:"url" mapstructure:"url"`
IsSysPrivate bool `json:"isSysPrivate" mapstructure:"is_sys_private"`
URI string `json:"uri" mapstructure:"uri"`
ListType string `json:"listType" mapstructure:"list_type"`
}
type FilterItem ¶
type HotCitiesResult ¶
type HotCitiesResult struct {
Locations []Location `json:"locations" mapstructure:"locations"`
}
type HotGaiaResult ¶
type HotGaiaResult struct {
ApiResult `mapstructure:",squash"`
SharingInfo SharingInfo `json:"sharingInfo" mapstructure:"sharing_info"`
Items []MovieItem `json:"items" mapstructure:"items"`
Areas []string `json:"areas" mapstructure:"areas"`
}
type Image ¶
type Image struct {
Normal ImageSize `json:"normal" mapstructure:"normal"`
Large ImageSize `json:"large" mapstructure:"large"`
Raw *ImageSize `json:"raw,omitempty" mapstructure:"raw"`
Small ImageSize `json:"small" mapstructure:"small"`
PrimaryColor string `json:"primaryColor" mapstructure:"primary_color"`
IsAnimated bool `json:"isAnimated" mapstructure:"is_animated"`
}
type ImageDetail ¶
type ImageDetail struct {
URL string `json:"url" mapstructure:"url"`
Width int `json:"width" mapstructure:"width"`
Height int `json:"height" mapstructure:"height"`
Size int `json:"size" mapstructure:"size"`
PrimaryColor string `json:"primaryColor" mapstructure:"primary_color"`
IsAnimated bool `json:"isAnimated" mapstructure:"is_animated"`
Raw interface{} `json:"raw" mapstructure:"raw"`
}
type Interest ¶
type Interest struct {
Comment string `json:"comment" mapstructure:"comment"`
Rating Rating `json:"rating" mapstructure:"rating"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
ShowTimeTip bool `json:"showTimeTip" mapstructure:"show_time_tip"`
IsVoted bool `json:"isVoted" mapstructure:"is_voted"`
URI string `json:"uri" mapstructure:"uri"`
Platforms []string `json:"platforms" mapstructure:"platforms"`
VoteCount int `json:"voteCount" mapstructure:"vote_count"`
CreateTime string `json:"createTime" mapstructure:"create_time"`
Status string `json:"status" mapstructure:"status"`
User User `json:"user" mapstructure:"user"`
IPLocation string `json:"ipLocation" mapstructure:"ip_location"`
RecommendReason string `json:"recommendReason" mapstructure:"recommend_reason"`
UserDoneDesc string `json:"userDoneDesc" mapstructure:"user_done_desc"`
ID string `json:"id" mapstructure:"id"`
}
type InterestsResult ¶
type InterestsRssInfo ¶
type InterestsRssInfo struct {
Title string
Url string
Date string
Type InterestsType
}
web 相关
type InterestsType ¶
type InterestsType string
const ( InterestsTypeWish InterestsType = "wish" InterestsTypeCollect InterestsType = "collect" InterestsTypeDo InterestsType = "do" )
type Later ¶
type Later struct {
Id string `mapstructure:"id"`
Title string `mapstructure:"title"`
Cover string `mapstructure:"cover"`
Url string `mapstructure:"url"`
}
web 相关
type MergedTab ¶
type MergedTab struct {
Category string `json:"category" mapstructure:"category"`
Items []MergedTabItem `json:"items" mapstructure:"items"`
GroupItems []MergedTabGroup `json:"groupItems" mapstructure:"group_items"`
}
type MergedTabGroup ¶
type MergedTabGroup struct {
Category string `json:"category" mapstructure:"category"`
Items []MergedTabItem `json:"items" mapstructure:"items"`
}
type MergedTabItem ¶
type Modules ¶
type Modules struct {
SubjectEntrances SubjectEntrances `json:"subjectEntrances" mapstructure:"subject_entrances"`
SubjectUnions SubjectUnions `json:"subjectUnions" mapstructure:"subject_unions"`
ComingSoon ComingSoon `json:"comingSoon" mapstructure:"coming_soon"`
SubjectCollectionBoards []SubjectCollectionBoards `json:"subjectCollectionBoards" mapstructure:"subject_collection_boards"`
SelectedCollections []SelectedCollections `json:"selectedCollections" mapstructure:"selected_collections"`
SelectedChartCollections []SelectedChartCollections `json:"selectedChartCollections" mapstructure:"selected_chart_collections"`
SubjectSuggestion SubjectSuggestion `json:"subjectSuggestion" mapstructure:"subject_suggestion"`
}
type MovieItem ¶
type MovieItem struct {
Comment string `json:"comment" mapstructure:"comment"`
Rating Rating `json:"rating" mapstructure:"rating"`
LineTicketURL string `json:"lineTicketUrl" mapstructure:"lineticket_url"`
HasLineWatch bool `json:"hasLineWatch" mapstructure:"has_linewatch"`
Pic Pic `json:"pic" mapstructure:"pic"`
HonorInfos []HonorInfo `json:"honorInfos" mapstructure:"honor_infos"`
URI string `json:"uri" mapstructure:"uri"`
Photos []string `json:"photos" mapstructure:"photos"`
VendorIcons []string `json:"vendorIcons" mapstructure:"vendor_icons"`
Interest string `json:"interest" mapstructure:"interest"`
Year int `json:"year" mapstructure:"year"`
CardSubtitle string `json:"cardSubtitle" mapstructure:"card_subtitle"`
Title string `json:"title" mapstructure:"title"`
Type string `json:"type" mapstructure:"type"`
ID string `json:"id" mapstructure:"id"`
Tags []Tag `json:"tags" mapstructure:"tags"`
}
type MovieModules ¶
type MovieModules struct {
SubjectEntrances SubjectEntrances `json:"subjectEntrances" mapstructure:"subject_entrances"`
SubjectUnions SubjectUnions `json:"subjectUnions" mapstructure:"subject_unions"`
ComingSoon ComingSoon `json:"comingSoon" mapstructure:"coming_soon"`
HotGaia SubjectCollectionBoards `json:"hotGaia" mapstructure:"hot_gaia"`
SelectedCollections SelectedCollections `json:"selectedCollections" mapstructure:"selected_collections"`
SelectedChartCollections SelectedChartCollections `json:"selectedChartCollections" mapstructure:"selected_chart_collections"`
MovieShowing SubjectCollectionBoards `json:"movieShowing" mapstructure:"movie_showing"`
SubjectSuggestion SubjectSuggestion `json:"subjectSuggestion" mapstructure:"subject_suggestion"`
}
type MovieRecommendCategory ¶
type MovieShowingResult ¶
type MovieShowingResult struct {
ApiResult `mapstructure:",squash"`
SharingInfo SharingInfo `json:"sharingInfo" mapstructure:"sharing_info"`
Items []MovieItem `json:"items" mapstructure:"items"`
}
type NowPlaying ¶
type NowPlaying struct {
Id string `mapstructure:"id"`
Title string `mapstructure:"title"`
Rate float64 `mapstructure:"rate"`
Cover string `mapstructure:"cover"`
Year int `mapstructure:"year"`
}
web 相关
type Owner ¶
type Owner struct {
Kind string `json:"kind" mapstructure:"kind"`
Name string `json:"name" mapstructure:"name"`
URL string `json:"url" mapstructure:"url"`
URI string `json:"uri" mapstructure:"uri"`
Avatar string `json:"avatar" mapstructure:"avatar"`
IsClub bool `json:"isClub" mapstructure:"is_club"`
Type string `json:"type" mapstructure:"type"`
ID string `json:"id" mapstructure:"id"`
UID string `json:"uid" mapstructure:"uid"`
}
type Photo ¶
type Photo struct {
ReadCount int `json:"readCount" mapstructure:"read_count"`
Image Image `json:"image" mapstructure:"image"`
CreateTime string `json:"createTime" mapstructure:"create_time"`
CollectionsCount int `json:"collectionsCount" mapstructure:"collections_count"`
ID string `json:"id" mapstructure:"id"`
Author Author `json:"author" mapstructure:"author"`
IsCollected bool `json:"isCollected" mapstructure:"is_collected"`
Subtype string `json:"subtype" mapstructure:"subtype"`
Type string `json:"type" mapstructure:"type"`
OwnerURI string `json:"ownerUri" mapstructure:"owner_uri"`
Status interface{} `json:"status" mapstructure:"status"`
ReactionType int `json:"reactionType" mapstructure:"reaction_type"`
Description string `json:"description" mapstructure:"description"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
URL string `json:"url" mapstructure:"url"`
ReplyLimit string `json:"replyLimit" mapstructure:"reply_limit"`
URI string `json:"uri" mapstructure:"uri"`
LikerCount int `json:"likerCount" mapstructure:"likers_count"`
ReactionsCount int `json:"reactionsCount" mapstructure:"reactions_count"`
CommentsCount int `json:"commentsCount" mapstructure:"comments_count"`
Position int `json:"position" mapstructure:"position"`
}
type PhotosResult ¶
type PlayableFilter ¶
type RankItem ¶
type RankItem struct {
Rating Rating `json:"rating" mapstructure:"rating"`
ControversyReason string `json:"controversyReason" mapstructure:"controversy_reason"`
PubDate []string `json:"pubDate" mapstructure:"pubdate"`
RankValue int `json:"rankValue" mapstructure:"rank_value"`
Pic Picture `json:"pic" mapstructure:"pic"`
HonorInfos []HonorInfo `json:"honorInfos" mapstructure:"honor_infos"`
IsShow bool `json:"isShow" mapstructure:"is_show"`
Year string `json:"year" mapstructure:"year"`
CardSubtitle string `json:"cardSubtitle" mapstructure:"card_subtitle"`
Id string `json:"id" mapstructure:"id"`
Genres []string `json:"genres" mapstructure:"genres"`
TrendDown bool `json:"trendDown" mapstructure:"trend_down"`
Title string `json:"title" mapstructure:"title"`
TrendEqual bool `json:"trendEqual" mapstructure:"trend_equal"`
TrendUp bool `json:"trendUp" mapstructure:"trend_up"`
IsReleased bool `json:"isReleased" mapstructure:"is_released"`
RankValueChanged int `json:"rankValueChanged" mapstructure:"rank_value_changed"`
Actors []Actor `json:"actors" mapstructure:"actors"`
ColorScheme ColorScheme `json:"colorScheme" mapstructure:"color_scheme"`
ItemType string `json:"type" mapstructure:"type"`
HasLineWatch bool `json:"hasLineWatch" mapstructure:"has_linewatch"`
CoverURL string `json:"coverUrl" mapstructure:"cover_url"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
ItemURL string `json:"url" mapstructure:"url"`
ReleaseDate *string `json:"releaseDate" mapstructure:"release_date"`
URI string `json:"uri" mapstructure:"uri"`
SubType string `json:"subtype" mapstructure:"subtype"`
Directors []Actor `json:"directors" mapstructure:"directors"`
Intro string `json:"intro" mapstructure:"intro"`
AlbumNoInteract bool `json:"albumNoInteract" mapstructure:"album_no_interact"`
NullRatingReason string `json:"nullRatingReason" mapstructure:"null_rating_reason"`
}
type RankList ¶
type RankList struct {
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
Groups []struct {
Title string `json:"title" mapstructure:"title"`
Type string `json:"type" mapstructure:"type"`
SelectedCollections []SelectedCollection `json:"selectedCollections" mapstructure:"selected_collections"`
Uri string `json:"uri" mapstructure:"uri"`
Tabs []Tab `json:"tabs" mapstructure:"tabs,omitempty"`
} `json:"groups" mapstructure:"groups"`
Title string `json:"title" mapstructure:"title"`
}
type RatingResult ¶
type RatingResult struct {
Stats []float64 `json:"stats" mapstructure:"stats"`
DoingCount int `json:"doingCount" mapstructure:"doing_count"`
WishCount int `json:"wishCount" mapstructure:"wish_count"`
WishFriends WishFriends `json:"wishFriends" mapstructure:"wish_friends"`
TypeRanks []TypeRank `json:"typeRanks" mapstructure:"type_ranks"`
Following interface{} `json:"following" mapstructure:"following"`
DoneCount int `json:"doneCount" mapstructure:"done_count"`
}
type RecommendChartItem ¶
type RecommendChartItem struct {
ItemsCount int `json:"itemsCount" mapstructure:"items_count"`
Subtitle string `json:"subtitle" mapstructure:"subtitle"`
Title string `json:"title" mapstructure:"title"`
IsFollow bool `json:"isFollow" mapstructure:"is_follow"`
UseImageCover bool `json:"useImageCover" mapstructure:"use_image_cover"`
URI string `json:"uri" mapstructure:"uri"`
CoverURL string `json:"coverURL" mapstructure:"cover_url"`
ItemType string `json:"itemType" mapstructure:"item_type"`
FollowersCount int `json:"followersCount" mapstructure:"followers_count"`
BGImage string `json:"bgImage" mapstructure:"bg_image"`
TileCover bool `json:"tileCover" mapstructure:"tile_cover"`
AlgJSON string `json:"algJson" mapstructure:"alg_json"`
ColorScheme ColorScheme `json:"colorScheme" mapstructure:"color_scheme"`
Type string `json:"type" mapstructure:"type"`
ID string `json:"id" mapstructure:"id"`
Card string `json:"card" mapstructure:"card"`
}
type RecommendItem ¶
type RecommendItem struct {
Comment Comment `json:"comment" mapstructure:"comment"`
Rating Rating `json:"rating" mapstructure:"rating"`
VendorCount int `json:"vendorCount" mapstructure:"vendor_count"`
PlayableDate *string `json:"playableDate" mapstructure:"playable_date"`
Pic Picture `json:"pic" mapstructure:"pic"`
HonorInfos []HonorInfo `json:"honorInfos" mapstructure:"honor_infos"`
VendorIcons []string `json:"vendorIcons" mapstructure:"vendor_icons"`
Year string `json:"year" mapstructure:"year"`
CardSubtitle string `json:"cardSubtitle" mapstructure:"card_subtitle"`
ID string `json:"id" mapstructure:"id"`
Title string `json:"title" mapstructure:"title"`
Tags []struct {
Name string `json:"name" mapstructure:"name"`
URI string `json:"uri" mapstructure:"uri"`
} `json:"tags" mapstructure:"tags"`
Interest *string `json:"interest" mapstructure:"interest"`
Type string `json:"type" mapstructure:"type"`
AlgJSON string `json:"algJson" mapstructure:"alg_json"`
HasLineWatch bool `json:"hasLineWatch" mapstructure:"has_linewatch"`
Photos []string `json:"photos" mapstructure:"photos"`
Card string `json:"card" mapstructure:"card"`
PlayableDateInfo string `json:"playableDateInfo" mapstructure:"playable_date_info"`
FollowingRating *string `json:"followingRating" mapstructure:"following_rating"`
URI string `json:"uri" mapstructure:"uri"`
EpisodesInfo string `json:"episodesInfo" mapstructure:"episodes_info"`
ItemType string `json:"itemType" mapstructure:"item_type"`
}
type RecommendResult ¶
type RecommendResult struct {
ApiResult `mapstructure:",squash"`
ShowRatingFilter bool `json:"showRatingFilter" mapstructure:"show_rating_filter"`
MovieRecommendCategories []MovieRecommendCategory `json:"movieRecommendCategories" mapstructure:"recommend_categories"`
TvRecommendCategories []TvRecommendCategory `json:"tvRecommendCategories" mapstructure:"recommend_categories"`
ChartItems []RecommendChartItem `json:"chartItems" mapstructure:"items"`
Items []RecommendItem `json:"items" mapstructure:"items"`
BottomRecommendTags []string `json:"bottomRecommendTags" mapstructure:"bottom_recommend_tags"`
PlayableFilters []PlayableFilter `json:"playableFilters" mapstructure:"playable_filters"`
Filters []Filter `json:"filters" mapstructure:"filters"`
//QuickMark
RecommendTags []string `json:"recommendTags" mapstructure:"recommend_tags"`
//ManualTags
SetUserVendor SetUserVendor `json:"setUserVendor" mapstructure:"set_user_vendor"`
Sorts []Sort `json:"sorts" mapstructure:"sorts"`
}
type RecommendationsItem ¶
type RecommendationsItem struct {
Rating Rating `json:"rating" mapstructure:"rating"`
AlgJSON string `json:"alg_json" mapstructure:"alg_json"`
SharingURL string `json:"sharing_url" mapstructure:"sharing_url"`
Title string `json:"title" mapstructure:"title"`
URL string `json:"url" mapstructure:"url"`
Pic Pic `json:"pic" mapstructure:"pic"`
URI string `json:"uri" mapstructure:"uri"`
Interest *string `json:"interest" mapstructure:"interest"`
Type string `json:"type" mapstructure:"type"`
ID string `json:"id" mapstructure:"id"`
}
type RelatedChartItem ¶
type RelatedChartItem struct {
RankType string `json:"rankType" mapstructure:"rank_type"`
ItemsCount int `json:"itemsCount" mapstructure:"items_count"`
IsMergedCover bool `json:"isMergedCover" mapstructure:"is_merged_cover"`
BackgroundColorScheme BackgroundColorScheme `json:"backgroundColorScheme" mapstructure:"background_color_scheme"`
ShortName string `json:"shortName" mapstructure:"short_name"`
URL string `json:"url" mapstructure:"url"`
Name string `json:"name" mapstructure:"name"`
NFollowers int `json:"nFollowers" mapstructure:"n_followers"`
CoverURL string `json:"coverUrl" mapstructure:"cover_url"`
URI string `json:"uri" mapstructure:"uri"`
IconFgImage string `json:"iconFgImage" mapstructure:"icon_fg_image"`
SubjectType string `json:"subjectType" mapstructure:"subject_type"`
ShowHeaderMask bool `json:"showHeaderMask" mapstructure:"show_header_mask"`
ListType string `json:"listType" mapstructure:"list_type"`
ID string `json:"id" mapstructure:"id"`
Subtitle string `json:"subtitle" mapstructure:"subtitle"`
MediumName string `json:"mediumName" mapstructure:"medium_name"`
Type string `json:"type" mapstructure:"type"`
Subjects []Subject `json:"subjects" mapstructure:"subjects"`
DoneCount int `json:"doneCount" mapstructure:"done_count"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
}
type Review ¶
type Review struct {
Rating Rating `json:"rating" mapstructure:"rating"`
UsefulCount int `json:"usefulCount" mapstructure:"useful_count"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
Title string `json:"title" mapstructure:"title"`
URL string `json:"url" mapstructure:"url"`
Abstract string `json:"abstract" mapstructure:"abstract"`
URI string `json:"uri" mapstructure:"uri"`
AdInfo string `json:"adInfo" mapstructure:"ad_info"`
Topic string `json:"topic" mapstructure:"topic"`
Photos []ReviewPhoto `json:"photos" mapstructure:"photos"`
ReactionsCount int `json:"reactionsCount" mapstructure:"reactions_count"`
CommentsCount int `json:"commentsCount" mapstructure:"comments_count"`
User User `json:"user" mapstructure:"user"`
CreateTime string `json:"createTime" mapstructure:"create_time"`
Type string `json:"type" mapstructure:"type"`
ID string `json:"id" mapstructure:"id"`
Subject struct {
Type string `json:"type" mapstructure:"type"`
Title string `json:"title" mapstructure:"title"`
} `json:"subject" mapstructure:"subject"`
}
type ReviewPhoto ¶
type ReviewsResult ¶
type SearchDouListItem ¶
type SearchDouListItem struct {
Title string `json:"title" mapstructure:"title"`
IsBadgeChart bool `json:"isBadgeChart" mapstructure:"is_badge_chart"`
URI string `json:"uri" mapstructure:"uri"`
CoverURL string `json:"coverUrl" mapstructure:"cover_url"`
TargetType string `json:"targetType" mapstructure:"target_type"`
CardSubtitle string `json:"cardSubtitle" mapstructure:"card_subtitle"`
IsOfficial bool `json:"isOfficial" mapstructure:"is_official"`
ID string `json:"id" mapstructure:"id"`
ImageLabel string `json:"imageLabel" mapstructure:"image_label"`
}
type SearchItem ¶
type SearchItem struct {
Layout string `json:"layout" mapstructure:"layout"`
TypeName string `json:"typeName" mapstructure:"type_name"`
TargetID string `json:"targetId" mapstructure:"target_id"`
Target Target `json:"target" mapstructure:"target"`
TargetType string `json:"targetType" mapstructure:"target_type"`
}
type SearchResult ¶
type SearchResult struct {
ApiResult `mapstructure:",squash"`
Banned string `json:"banned" mapstructure:"banned"`
Items []SearchItem `json:"items" mapstructure:"items"`
}
type SearchSubject ¶
type SearchSubject struct {
EpisodesInfo string `mapstructure:"episodes_info"`
Rate float64 `mapstructure:"rate"`
CoverX int `mapstructure:"cover_x"`
Title string `mapstructure:"title"`
Url string `mapstructure:"url"`
Playable bool `mapstructure:"playable"`
Cover string `mapstructure:"cover"`
Id string `mapstructure:"id"`
CoverY int `mapstructure:"cover_y"`
IsNew bool `mapstructure:"is_new"`
}
web 相关
type SearchSubjectsType ¶
type SelectedChartCollection ¶
type SelectedChartCollection struct {
Category string `json:"category" mapstructure:"category"`
ItemsCount int `json:"itemsCount" mapstructure:"items_count"`
IsMergedCover bool `json:"isMergedCover" mapstructure:"is_merged_cover"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
Title string `json:"title" mapstructure:"title"`
URL string `json:"url" mapstructure:"url"`
URI string `json:"uri" mapstructure:"uri"`
CoverURL string `json:"coverUrl" mapstructure:"cover_url"`
FollowersCount int `json:"followersCount" mapstructure:"followers_count"`
IsOfficial bool `json:"isOfficial" mapstructure:"is_official"`
Type string `json:"type" mapstructure:"type"`
ID string `json:"id" mapstructure:"id"`
DoneCount int `json:"doneCount" mapstructure:"done_count"`
BackgroundColorScheme BackgroundColorScheme `json:"backgroundColorScheme" mapstructure:"background_color_scheme"`
}
type SelectedChartCollections ¶
type SelectedChartCollections struct {
URL string `json:"url" mapstructure:"url"`
ModuleName string `json:"moduleName" mapstructure:"module_name"`
Data struct {
Total int `json:"total" mapstructure:"total"`
SelectedCollections []SelectedChartCollection `json:"selectedCollections" mapstructure:"selected_collections"`
Title string `json:"title" mapstructure:"title"`
} `json:"data" mapstructure:"data"`
URI string `json:"uri" mapstructure:"uri"`
Key string `json:"key" mapstructure:"key"`
}
type SelectedCollection ¶
type SelectedCollection struct {
SubjectType string `json:"subjectType" mapstructure:"subject_type"`
Subtitle string `json:"subtitle" mapstructure:"subtitle"`
BackgroundColorScheme ColorScheme `json:"backgroundColorScheme" mapstructure:"background_color_scheme"`
IsFollow bool `json:"isFollow" mapstructure:"is_follow"`
UpdatedAt string `json:"updatedAt" mapstructure:"updated_at"`
Rank bool `json:"rank" mapstructure:"rank"`
SkyNetModel *string `json:"skyNetModel" mapstructure:"skynet_model"`
Total int `json:"total" mapstructure:"total"`
TypeIconBgText string `json:"typeIconBgText" mapstructure:"type_icon_bg_text"`
Category string `json:"category" mapstructure:"category"`
IsOfficial bool `json:"isOfficial" mapstructure:"is_official"`
IsMergedCover bool `json:"isMergedCover" mapstructure:"is_merged_cover"`
HeaderFgImage string `json:"headerFgImage" mapstructure:"header_fg_image"`
CollectionTitle string `json:"title" mapstructure:"title"`
WxQRCode string `json:"wxQrCode" mapstructure:"wx_qr_code"`
FinishSoon bool `json:"finishSoon" mapstructure:"finish_soon"`
Id string `json:"id" mapstructure:"id"`
FollowersCount int `json:"followersCount" mapstructure:"followers_count"`
ShowHeaderMask bool `json:"showHeaderMask" mapstructure:"show_header_mask"`
MediumName string `json:"mediumName" mapstructure:"medium_name"`
CollectionType string `json:"type" mapstructure:"type"`
RankType string `json:"rankType" mapstructure:"rank_type"`
Description string `json:"description" mapstructure:"description"`
ShortName string `json:"shortName" mapstructure:"short_name"`
NFollowers int `json:"nFollowers" mapstructure:"n_followers"`
CoverURL string `json:"coverUrl" mapstructure:"cover_url"`
HeaderBgImage string `json:"headerBgImage" mapstructure:"header_bg_image"`
ShowRank bool `json:"showRank" mapstructure:"show_rank"`
ChartID int `json:"chartId" mapstructure:"chart_id"`
DoneCount int `json:"doneCount" mapstructure:"done_count"`
Name string `json:"name" mapstructure:"name"`
WxAppCode string `json:"wxAppCode" mapstructure:"wx_app_code"`
SubjectCount int `json:"subjectCount" mapstructure:"subject_count"`
ItemsCount int `json:"itemsCount" mapstructure:"items_count"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
CollectCount int `json:"collectCount" mapstructure:"collect_count"`
URL string `json:"url" mapstructure:"url"`
Items []RankItem `json:"items" mapstructure:"items"`
IsBadgeChart bool `json:"isBadgeChart" mapstructure:"is_badge_chart"`
CollectionUri string `json:"uri" mapstructure:"uri"`
MiniProgramPage string `json:"miniProgramPage" mapstructure:"mini_program_page"`
IconFgImage string `json:"iconFgImage" mapstructure:"icon_fg_image"`
IconText string `json:"iconText" mapstructure:"icon_text"`
MoreDescription string `json:"moreDescription" mapstructure:"more_description"`
ListType string `json:"listType" mapstructure:"list_type"`
MiniProgramName string `json:"miniProgramName" mapstructure:"mini_program_name"`
Display Display `json:"display" mapstructure:"display"`
User *string `json:"user" mapstructure:"user"`
}
type SelectedCollections ¶
type SelectedCollections struct {
URL string `json:"url" mapstructure:"url"`
ModuleName string `json:"moduleName" mapstructure:"module_name"`
Data struct {
Total int `json:"total" mapstructure:"total"`
SelectedCollections []SelectedCollection `json:"selectedCollections" mapstructure:"selected_collections"`
Title string `json:"title" mapstructure:"title"`
} `json:"data" mapstructure:"data"`
URI string `json:"uri" mapstructure:"uri"`
Key string `json:"key" mapstructure:"key"`
}
type SetUserVendor ¶
type SharingInfo ¶
type SharingInfo struct {
SharingUrl string `json:"sharingUrl" mapstructure:"sharing_url"`
Title string `json:"title" mapstructure:"title"`
ScreenshotTitle string `json:"screenshotTitle" mapstructure:"screenshot_title"`
ScreenshotUrl string `json:"screenshotUrl" mapstructure:"screenshot_url"`
ScreenshotType string `json:"screenshotType" mapstructure:"screenshot_type"`
}
type SkyNetModel ¶
type SkyNetNewPlayListsItem ¶
type SkyNetNewPlayListsItem struct {
BackgroundColorScheme BackgroundColorScheme `json:"backgroundColorScheme" mapstructure:"background_color_scheme"`
Total int `json:"total" mapstructure:"total"`
ID string `json:"id" mapstructure:"id"`
Category string `json:"category" mapstructure:"category"`
IsMergedCover bool `json:"isMergedCover" mapstructure:"is_merged_cover"`
Title string `json:"title" mapstructure:"title"`
IconText string `json:"iconText" mapstructure:"icon_text"`
FollowersCount int `json:"followersCount" mapstructure:"followers_count"`
Type string `json:"type" mapstructure:"type"`
RankType string `json:"rankType" mapstructure:"rank_type"`
CoverURL string `json:"coverUrl" mapstructure:"cover_url"`
HeaderBgImage string `json:"headerBgImage" mapstructure:"header_bg_image"`
DoneCount int `json:"doneCount" mapstructure:"done_count"`
SubjectCount int `json:"subjectCount" mapstructure:"subject_count"`
ItemsCount int `json:"itemsCount" mapstructure:"items_count"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
CollectCount int `json:"collectCount" mapstructure:"collect_count"`
URL string `json:"url" mapstructure:"url"`
IsBadgeChart bool `json:"isBadgeChart" mapstructure:"is_badge_chart"`
URI string `json:"uri" mapstructure:"uri"`
ItemType string `json:"itemType" mapstructure:"item_type"`
FinishSoon bool `json:"finishSoon" mapstructure:"finish_soon"`
ListType string `json:"listType" mapstructure:"list_type"`
}
type SkyNetNewPlayListsResult ¶
type SkyNetNewPlayListsResult struct {
ApiResult `mapstructure:",squash"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
Data []struct {
Category string `json:"category" mapstructure:"category"`
Total int `json:"total" mapstructure:"total"`
Items []SkyNetNewPlayListsItem `json:"items" mapstructure:"items"`
} `json:"data" mapstructure:"data"`
}
type SortOption ¶
type SubModule ¶
type SubModule struct {
ID string `json:"id" mapstructure:"id"`
Data *interface{} `json:"data,omitempty" mapstructure:"data"`
DataType *string `json:"dataType,omitempty" mapstructure:"data_type"`
SortBy *[]SortOption `json:"sortBy,omitempty" mapstructure:"sort_by"`
}
type Subject ¶
type Subject struct {
Rating Rating `json:"rating" mapstructure:"rating"`
ControversyReason string `json:"controversyReason" mapstructure:"controversy_reason"`
Title string `json:"title" mapstructure:"title"`
URL string `json:"url" mapstructure:"url"`
Pic Pic `json:"pic" mapstructure:"pic"`
URI string `json:"uri" mapstructure:"uri"`
CoverURL string `json:"coverUrl" mapstructure:"cover_url"`
IsReleased bool `json:"isReleased" mapstructure:"is_released"`
IsShow bool `json:"isShow" mapstructure:"is_show"`
IsPlayable bool `json:"isPlayable" mapstructure:"is_playable"`
Subtype string `json:"subtype" mapstructure:"subtype"`
CardSubtitle string `json:"cardSubtitle" mapstructure:"card_subtitle"`
ColorScheme ColorScheme `json:"colorScheme" mapstructure:"color_scheme"`
Type string `json:"type" mapstructure:"type"`
ID string `json:"id" mapstructure:"id"`
NullRatingReason string `json:"nullRatingReason" mapstructure:"null_rating_reason"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
}
type SubjectCollection ¶
type SubjectCollection struct {
SubjectType string `json:"subjectType" mapstructure:"subject_type"`
Subtitle string `json:"subtitle" mapstructure:"subtitle"`
BackgroundColorScheme BackgroundColorScheme `json:"backgroundColorScheme" mapstructure:"background_color_scheme"`
SharingTitle string `json:"sharingTitle" mapstructure:"sharing_title"`
UpdatedAt *string `json:"updatedAt" mapstructure:"updated_at"`
ID string `json:"id" mapstructure:"id"`
ShowHeaderMask bool `json:"showHeaderMask" mapstructure:"show_header_mask"`
MediumName string `json:"mediumName" mapstructure:"medium_name"`
Description string `json:"description" mapstructure:"description"`
ShortName string `json:"shortName" mapstructure:"short_name"`
NFollowers *int `json:"nFollowers" mapstructure:"n_followers"`
CoverURL string `json:"coverUrl" mapstructure:"cover_url"`
ShowRank bool `json:"showRank" mapstructure:"show_rank"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
SubjectCount int `json:"subjectCount" mapstructure:"subject_count"`
Name string `json:"name" mapstructure:"name"`
URL string `json:"url" mapstructure:"url"`
URI string `json:"uri" mapstructure:"uri"`
ShowFilterPlayable bool `json:"showFilterPlayable" mapstructure:"show_filter_playable"`
IconFgImage string `json:"iconFgImage" mapstructure:"icon_fg_image"`
MoreDescription string `json:"moreDescription" mapstructure:"more_description"`
Display Display `json:"display" mapstructure:"display"`
}
type SubjectCollectionBoard ¶
type SubjectCollectionBoard struct {
SubjectCollection SubjectCollection `json:"subject_collection" mapstructure:"subject_collection"`
Type string `json:"type" mapstructure:"type"`
Items []SubjectCollectionBoardItem `json:"items" mapstructure:"items"`
}
type SubjectCollectionBoardItem ¶
type SubjectCollectionBoardItem struct {
OriginalPrice *string `json:"originalPrice" mapstructure:"original_price"`
Rating Rating `json:"rating" mapstructure:"rating"`
Actions []string `json:"actions" mapstructure:"actions"`
Year string `json:"year" mapstructure:"year"`
CardSubtitle string `json:"cardSubtitle" mapstructure:"card_subtitle"`
ID string `json:"id" mapstructure:"id"`
Title string `json:"title" mapstructure:"title"`
Label *string `json:"label" mapstructure:"label"`
Actors []string `json:"actors" mapstructure:"actors"`
Interest *string `json:"interest" mapstructure:"interest"`
Type string `json:"type" mapstructure:"type"`
Description string `json:"description" mapstructure:"description"`
HasLineWatch bool `json:"hasLineWatch" mapstructure:"has_linewatch"`
Price *string `json:"price" mapstructure:"price"`
Date *string `json:"date" mapstructure:"date"`
Info string `json:"info" mapstructure:"info"`
URL string `json:"url" mapstructure:"url"`
ReleaseDate string `json:"releaseDate" mapstructure:"release_date"`
Cover Cover `json:"cover" mapstructure:"cover"`
URI string `json:"uri" mapstructure:"uri"`
Subtype string `json:"subtype" mapstructure:"subtype"`
Directors []string `json:"directors" mapstructure:"directors"`
ReviewerName string `json:"reviewerName" mapstructure:"reviewer_name"`
NullRatingReason string `json:"nullRatingReason" mapstructure:"null_rating_reason"`
}
type SubjectCollectionBoards ¶
type SubjectCollectionBoards struct {
URL string `json:"url" mapstructure:"url"`
ModuleName string `json:"moduleName" mapstructure:"module_name"`
Data struct {
SubjectCollectionBoards []SubjectCollectionBoard `json:"subjectCollectionBoards" mapstructure:"subject_collection_boards"`
} `json:"data" mapstructure:"data"`
URI string `json:"uri" mapstructure:"uri"`
Key string `json:"key" mapstructure:"key"`
}
type SubjectCollectionId ¶
type SubjectCollectionId string
const ( MovieShowing SubjectCollectionId = "movie_showing" // 正在热映 MovieHotGaia SubjectCollectionId = "movie_hot_gaia" // 热门电影 MovieSoon SubjectCollectionId = "movie_soon" // 即将上映 MovieTop250 SubjectCollectionId = "movie_top250" // Top250 MovieSciFi SubjectCollectionId = "movie_scifi" // 高分经典科幻片 MovieComeDyn SubjectCollectionId = "movie_comedy" // 高分经典喜剧片 MovieAction SubjectCollectionId = "movie_action" // 高分经典动作片 MovieLove SubjectCollectionId = "movie_love" // 高分经典爱情片 TvHot SubjectCollectionId = "tv_hot" // 热门剧集 TvDomestic SubjectCollectionId = "tv_domestic" // 国产剧 TvAmerican SubjectCollectionId = "tv_american" // 美剧 TvJapanese SubjectCollectionId = "tv_japanese" // 日剧 TvKorean SubjectCollectionId = "tv_korean" // 韩剧 TvAnimation SubjectCollectionId = "tv_animation" // 动漫 TvVarietyShow SubjectCollectionId = "tv_variety_show" // 综艺 TvChineseBestWeekly SubjectCollectionId = "tv_chinese_best_weekly" // 华语口碑周榜 TvGlobalBestWeekly SubjectCollectionId = "tv_global_best_weekly" // 全球口碑周榜 ShowHot SubjectCollectionId = "show_hot" // 执门综艺 ShowDomestic SubjectCollectionId = "show_domestic" // 国内综艺 ShowForeign SubjectCollectionId = "show_foreign" // 国外综艺 )
type SubjectCollectionItem ¶
type SubjectCollectionItem struct {
Comment string `json:"comment" mapstructure:"comment"`
Rating Rating `json:"rating" mapstructure:"rating"`
ControversyReason string `json:"controversyReason" mapstructure:"controversy_reason"`
Pic Pic `json:"pic" mapstructure:"pic"`
Rank int `json:"rank" mapstructure:"rank"`
URI string `json:"uri" mapstructure:"uri"`
IsShow bool `json:"isShow" mapstructure:"is_show"`
VendorIcons []string `json:"vendorIcons" mapstructure:"vendor_icons"`
CardSubtitle string `json:"cardSubtitle" mapstructure:"card_subtitle"`
ID string `json:"id" mapstructure:"id"`
Title string `json:"title" mapstructure:"title"`
HasLineWatch bool `json:"hasLineWatch" mapstructure:"has_linewatch"`
IsReleased bool `json:"isReleased" mapstructure:"is_released"`
Interest interface{} `json:"interest" mapstructure:"interest"`
ColorScheme ColorScheme `json:"colorScheme" mapstructure:"color_scheme"`
Type string `json:"type" mapstructure:"type"`
Description string `json:"description" mapstructure:"description"`
Tags []string `json:"tags" mapstructure:"tags"`
CoverURL string `json:"coverUrl" mapstructure:"cover_url"`
Photos []string `json:"photos" mapstructure:"photos"`
Actions []string `json:"actions" mapstructure:"actions"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
URL string `json:"url" mapstructure:"url"`
HonorInfos []HonorInfo `json:"honorInfos" mapstructure:"honor_infos"`
GoodRatingStats int `json:"goodRatingStats" mapstructure:"good_rating_stats"`
Subtype string `json:"subtype" mapstructure:"subtype"`
NullRatingReason string `json:"nullRatingReason" mapstructure:"null_rating_reason"`
}
type SubjectCollectionItemsResult ¶
type SubjectCollectionItemsResult struct {
ApiResult `mapstructure:",squash"`
SubjectCollectionItems []SubjectCollectionItem `json:"subjectCollectionItems" mapstructure:"subject_collection_items"`
SubjectCollection SubjectCollectionResult `json:"subjectCollection" mapstructure:"subject_collection"`
}
type SubjectCollectionResult ¶
type SubjectCollectionResult struct {
SubjectType string `json:"subjectType" mapstructure:"subject_type"`
Subtitle string `json:"subtitle" mapstructure:"subtitle"`
BackgroundColorScheme BackgroundColorScheme `json:"backgroundColorScheme" mapstructure:"background_color_scheme"`
IsFollow bool `json:"isFollow" mapstructure:"is_follow"`
UpdatedAt string `json:"updatedAt" mapstructure:"updated_at"`
ScreenshotTitle string `json:"screenshotTitle" mapstructure:"screenshot_title"`
ScreenshotURL string `json:"screenshotUrl" mapstructure:"screenshot_url"`
SkyNetModel SkyNetModel `json:"skyNetModel" mapstructure:"skynet_model"`
Total int `json:"total" mapstructure:"total"`
ScreenshotType string `json:"screenshotType" mapstructure:"screenshot_type"`
TypeIconBgText string `json:"typeIconBgText" mapstructure:"type_icon_bg_text"`
Category string `json:"category" mapstructure:"category"`
IsOfficial bool `json:"isOfficial" mapstructure:"is_official"`
IsMergedCover bool `json:"isMergedCover" mapstructure:"is_merged_cover"`
Title string `json:"title" mapstructure:"title"`
WxQRCode string `json:"wxQrCode" mapstructure:"wx_qr_code"`
Personage *string `json:"personage" mapstructure:"personage"`
ID string `json:"id" mapstructure:"id"`
FollowersCount int `json:"followersCount" mapstructure:"followers_count"`
ShowHeaderMask bool `json:"showHeaderMask" mapstructure:"show_header_mask"`
RelatedCharts struct {
Items []RankItem `json:"items" mapstructure:"items"`
URI string `json:"uri" mapstructure:"uri"`
Title string `json:"title" mapstructure:"title"`
} `json:"relatedCharts" mapstructure:"related_charts"`
MediumName string `json:"mediumName" mapstructure:"medium_name"`
Badge Badge `json:"badge" mapstructure:"badge"`
RankType string `json:"rankType" mapstructure:"rank_type"`
MergedTabs []MergedTab `json:"mergedTabs" mapstructure:"merged_tabs"`
Description string `json:"description" mapstructure:"description"`
ShortName string `json:"shortName" mapstructure:"short_name"`
NFollowers int `json:"nFollowers" mapstructure:"n_followers"`
CoverURL string `json:"coverUrl" mapstructure:"cover_url"`
HeaderBGImage string `json:"headerBgImage" mapstructure:"header_bg_image"`
CanFollow bool `json:"canFollow" mapstructure:"can_follow"`
ShowRank bool `json:"showRank" mapstructure:"show_rank"`
ChartID int `json:"chartId" mapstructure:"chart_id"`
CompleteAt *string `json:"completeAt" mapstructure:"complete_at"`
Name string `json:"name" mapstructure:"name"`
DoneCount int `json:"doneCount" mapstructure:"done_count"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
WxAppCode string `json:"wxAppCode" mapstructure:"wx_app_code"`
SubjectCount int `json:"subjectCount" mapstructure:"subject_count"`
ItemsCount int `json:"itemsCount" mapstructure:"items_count"`
CollectCount int `json:"collectCount" mapstructure:"collect_count"`
URL string `json:"url" mapstructure:"url"`
Type string `json:"type" mapstructure:"type"`
IsBadgeChart bool `json:"isBadgeChart" mapstructure:"is_badge_chart"`
URI string `json:"uri" mapstructure:"uri"`
MiniProgramPage string `json:"miniProgramPage" mapstructure:"mini_program_page"`
IconFgImage string `json:"iconFgImage" mapstructure:"icon_fg_image"`
IconText string `json:"iconText" mapstructure:"icon_text"`
MoreDescription string `json:"moreDescription" mapstructure:"more_description"`
ListType string `json:"listType" mapstructure:"list_type"`
MiniProgramName string `json:"miniProgramName" mapstructure:"mini_program_name"`
FinishSoon bool `json:"finishSoon" mapstructure:"finish_soon"`
Display Display `json:"display" mapstructure:"display"`
User *string `json:"user" mapstructure:"user"`
}
type SubjectData ¶
type SubjectData struct {
SubjectEntrances []SubjectEntrance `json:"subjectEntrances" mapstructure:"subject_entrances"`
Total int `json:"total" mapstructure:"total"`
}
type SubjectEntrance ¶
type SubjectEntrances ¶
type SubjectEntrances struct {
URL string `json:"url" mapstructure:"url"`
ModuleName string `json:"moduleName" mapstructure:"module_name"`
Data SubjectData `json:"data" mapstructure:"data"`
URI string `json:"uri" mapstructure:"uri"`
Key string `json:"key" mapstructure:"key"`
}
type SubjectSuggestion ¶
type SubjectSuggestion struct {
URL string `json:"url" mapstructure:"url"`
ModuleName string `json:"moduleName" mapstructure:"module_name"`
Data struct {
Type string `json:"type" mapstructure:"type"`
Title string `json:"title" mapstructure:"title"`
} `json:"data" mapstructure:"data"`
URI string `json:"uri" mapstructure:"uri"`
Key string `json:"key" mapstructure:"key"`
}
type SubjectUnions ¶
type TagResult ¶
type TagResult struct {
ApiResult `mapstructure:",squash"`
Name string `json:"name" mapstructure:"name"`
Tags []Tag `json:"tags" mapstructure:"tags"`
//RelatedTags
Filters []Filter `json:"filters" mapstructure:"filters"`
ShowRatingFilter bool `json:"showRatingFilter" mapstructure:"show_rating_filter"`
Sorts []Sort `json:"sorts" mapstructure:"sorts"`
Data []RankItem `json:"data" mapstructure:"data"`
}
type Target ¶
type Target struct {
Rating Rating `json:"rating" mapstructure:"rating"`
ControversyReason string `json:"controversyReason" mapstructure:"controversy_reason"`
Title string `json:"title" mapstructure:"title"`
Abstract string `json:"abstract" mapstructure:"abstract"`
HasLineWatch bool `json:"hasLineWatch" mapstructure:"has_linewatch"`
URI string `json:"uri" mapstructure:"uri"`
CoverURL string `json:"coverUrl" mapstructure:"cover_url"`
Year string `json:"year" mapstructure:"year"`
CardSubtitle string `json:"cardSubtitle" mapstructure:"card_subtitle"`
ID string `json:"id" mapstructure:"id"`
NullRatingReason string `json:"nullRatingReason" mapstructure:"null_rating_reason"`
}
type Top250 ¶
type Top250 struct {
Title string `mapstructure:"title"`
Cover string `mapstructure:"cover"`
Url string `mapstructure:"url"`
}
web 相关
type Trailer ¶
type Trailer struct {
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
VideoURL string `json:"videoUrl" mapstructure:"video_url"`
Title string `json:"title" mapstructure:"title"`
TypeName string `json:"typeName" mapstructure:"type_name"`
URI string `json:"uri" mapstructure:"uri"`
CoverURL string `json:"coverUrl" mapstructure:"cover_url"`
TermNum int `json:"termNum" mapstructure:"term_num"`
NComments int `json:"nComments" mapstructure:"n_comments"`
CreateTime string `json:"createTime" mapstructure:"create_time"`
FileSize int `json:"fileSize" mapstructure:"file_size"`
Runtime string `json:"runtime" mapstructure:"runtime"`
Type string `json:"type" mapstructure:"type"`
ID string `json:"id" mapstructure:"id"`
Desc string `json:"desc" mapstructure:"desc"`
}
type TrailerItem ¶
type TrailerItem struct {
ReactionType int `json:"reactionType" mapstructure:"reaction_type"`
SharingURL string `json:"sharingUrl" mapstructure:"sharing_url"`
VideoURL string `json:"videoUrl" mapstructure:"video_url"`
Title string `json:"title" mapstructure:"title"`
TypeName string `json:"typeName" mapstructure:"type_name"`
URI string `json:"uri" mapstructure:"uri"`
CoverURL string `json:"coverUrl" mapstructure:"cover_url"`
TermNum int `json:"termNum" mapstructure:"term_num"`
NComments int `json:"nComments" mapstructure:"n_comments"`
ReactionsCount int `json:"reactionsCount" mapstructure:"reactions_count"`
CreateTime string `json:"createTime" mapstructure:"create_time"`
CollectionsCount int `json:"collectionsCount" mapstructure:"collections_count"`
FileSize int `json:"fileSize" mapstructure:"file_size"`
Runtime string `json:"runtime" mapstructure:"runtime"`
Type string `json:"type" mapstructure:"type"`
ID string `json:"id" mapstructure:"id"`
IsCollected bool `json:"isCollected" mapstructure:"is_collected"`
Desc string `json:"desc" mapstructure:"desc"`
}
type TrailersResult ¶
type TrailersResult struct {
Trailers []TrailerItem `json:"trailers" mapstructure:"trailers"`
}
type TvRecommendCategory ¶
type TvRecommendCategory struct {
IsControl bool `json:"isControl" mapstructure:"is_control"`
Type string `json:"type" mapstructure:"type"`
Data []struct {
Default bool `json:"default" mapstructure:"default"`
IsControl bool `json:"isControl" mapstructure:"is_control"`
Text string `json:"text" mapstructure:"text"`
Tags []string `json:"tags" mapstructure:"tags"`
} `json:"data" mapstructure:"data"`
TagGroups string `json:"tagGroups" mapstructure:"tag_groups"`
}
type User ¶
type User struct {
Loc Location `json:"loc" mapstructure:"loc"`
RegTime string `json:"regTime" mapstructure:"reg_time"`
Followed bool `json:"followed" mapstructure:"followed"`
Name string `json:"name" mapstructure:"name"`
UID string `json:"uid" mapstructure:"uid"`
URL string `json:"url" mapstructure:"url"`
Gender string `json:"gender" mapstructure:"gender"`
URI string `json:"uri" mapstructure:"uri"`
Kind string `json:"kind" mapstructure:"kind"`
AvatarSideIcon string `json:"avatarSideIcon" mapstructure:"avatar_side_icon"`
IsClub bool `json:"isClub" mapstructure:"is_club"`
Remark string `json:"remark" mapstructure:"remark"`
AvatarSideIconID string `json:"avatarSideIconID" mapstructure:"avatar_side_icon_id"`
InBlacklist bool `json:"inBlacklist" mapstructure:"in_blacklist"`
AvatarSideIconType int `json:"avatarSideIconType" mapstructure:"avatar_side_icon_type"`
Type string `json:"type" mapstructure:"type"`
ID string `json:"id" mapstructure:"id"`
Avatar string `json:"avatar" mapstructure:"avatar"`
}
type VariableModule ¶
type WebClient ¶
type WebClient struct {
// contains filtered or unexported fields
}
func NewWebClient ¶
func (*WebClient) AnimeHot ¶
func (c *WebClient) AnimeHot(pageLimit int, pageStart int) ([]SearchSubject, error)
AnimeHot 热门动漫
func (*WebClient) InterestsRss ¶
func (c *WebClient) InterestsRss(peopleId string) ([]InterestsRssInfo, error)
InterestsRss 获取用户动态
func (*WebClient) MovieHot ¶
func (c *WebClient) MovieHot(pageLimit int, pageStart int) ([]SearchSubject, error)
MovieHot 热门电影
func (*WebClient) MovieNew ¶
func (c *WebClient) MovieNew(pageLimit int, pageStart int) ([]SearchSubject, error)
MovieNew 最新电影
func (*WebClient) MovieRate ¶
func (c *WebClient) MovieRate(pageLimit int, pageStart int) ([]SearchSubject, error)
MovieRate 高分电影
func (*WebClient) NowPlaying ¶
func (c *WebClient) NowPlaying() ([]NowPlaying, error)
NowPlaying 正在热映
func (*WebClient) SearchSubjects ¶
func (*WebClient) SearchSubjectsWith ¶
func (c *WebClient) SearchSubjectsWith(typ SearchSubjectsType, pageLimit int, pageStart int) ([]SearchSubject, error)
func (*WebClient) TvHot ¶
func (c *WebClient) TvHot(pageLimit int, pageStart int) ([]SearchSubject, error)
TvHot 热门电视剧
func (*WebClient) VarietyHot ¶
func (c *WebClient) VarietyHot(pageLimit int, pageStart int) ([]SearchSubject, error)
VarietyHot 热门综艺
type Wish ¶
type Wish struct {
Title string `mapstructure:"title"`
Cover string `mapstructure:"cover"`
Url string `mapstructure:"url"`
Date string `mapstructure:"date"`
}
web 相关
type WishFriends ¶
type WishFriends struct {
Total int `json:"total" mapstructure:"total"`
Users []interface{} `json:"users" mapstructure:"users"`
}
type WxResult ¶
type WxResult struct {
ApiResult `mapstructure:",squash"`
Items []SearchItem `json:"items" mapstructure:"items"`
DouListItems []SearchDouListItem `json:"douListItems" mapstructure:"items"`
}
type YearRanks ¶
type YearRanks struct {
Groups []struct {
Title string `json:"title" mapstructure:"title"`
Uri string `json:"uri" mapstructure:"uri"`
SelectedCollections []SelectedCollection `json:"selected_collections" mapstructure:"selected_collections"`
} `json:"groups"`
}
Source Files
¶
- Photos.go
- api_client.go
- category_ranks.go
- celebrities.go
- coming_soon.go
- constants.go
- detail.go
- douban.go
- doulist.go
- doulist_items.go
- hot_cities.go
- http.go
- interests.go
- modules.go
- movie_hot_gaia.go
- movie_movie_showing.go
- options.go
- rank_list.go
- rating.go
- recommend.go
- recommendations.go
- reviews.go
- search.go
- search_weixin.go
- skynet_new_playlists.go
- subject_collection.go
- subject_collection_items.go
- tag.go
- trailers.go
- types.go
- web_client.go
- web_search_subjects.go
- year_ranks.go
Click to show internal directories.
Click to hide internal directories.