Documentation
¶
Index ¶
- type Album
- type AlbumList
- type ArcItem
- type ArcList
- type ArticleItem
- type ArticleList
- type Attrs
- type AudioItem
- type AudioList
- type BangumiItem
- type BangumiList
- type Card
- type Clip
- type ClipList
- type CommItem
- type CommuList
- type Contributes
- type FavList
- type Item
- type Items
- type LevelInfo
- type Links
- type Mine
- type MineParam
- type Mob
- type Myinfo
- type NameplateInfo
- type OfficialInfo
- type Pendant
- type PendantInfo
- type Pictures
- type Section
- type SectionItem
- type Setting
- type Shop
- type Space
- type Tab
- type Tag
- type TagList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct { ID int64 `json:"doc_id"` CTime xtime.Time `json:"ctime"` Count int `json:"count"` View int `json:"view"` Comment int `json:"comment"` Title string `json:"title"` Desc string `json:"description"` Pictures []*Pictures `json:"pictures"` }
Album struct
type AlbumList ¶
type AlbumList struct { Count int `json:"count"` More int `json:"has_more"` Offset int `json:"next_offset"` Item []*Item `json:"item"` }
AlbumList struct
type ArcItem ¶
type ArcItem struct { Title string `json:"title"` TypeName string `json:"tname"` Cover string `json:"cover"` URI string `json:"uri"` Param string `json:"param"` Goto string `json:"goto"` Length string `json:"length"` Duration int64 `json:"duration"` // av Play int `json:"play"` Danmaku int `json:"danmaku"` CTime xtime.Time `json:"ctime"` UGCPay int32 `json:"ugc_pay"` }
ArcItem struct
type ArticleItem ¶
type ArticleItem struct { *article.Meta URI string `json:"uri"` Param string `json:"param"` Goto string `json:"goto"` }
ArticleItem struct
func (*ArticleItem) FromArticle ¶
func (i *ArticleItem) FromArticle(a *article.Meta)
FromArticle func
type ArticleList ¶
type ArticleList struct { Count int `json:"count"` Item []*ArticleItem `json:"item"` ListsCount int `json:"lists_count"` Lists []*article.List `json:"lists"` }
ArticleList struct
type Attrs ¶
type Attrs struct { Archive bool `json:"archive,omitempty"` Article bool `json:"article,omitempty"` Clip bool `json:"clip,omitempty"` Album bool `json:"album,omitempty"` Audio bool `json:"audio,omitempty"` }
Attrs struct
type AudioItem ¶
type AudioItem struct { ID int64 `json:"id"` Aid int64 `json:"aid"` UID int64 `json:"uid"` Title string `json:"title"` Cover string `json:"cover"` Author string `json:"author"` Schema string `json:"schema"` Duration int64 `json:"duration"` Play int `json:"play"` Reply int `json:"reply"` IsOff int `json:"isOff"` AuthType int `json:"authType"` CTime xtime.Time `json:"ctime"` }
AudioItem struct
type BangumiItem ¶
type BangumiItem struct { Title string `json:"title"` Cover string `json:"cover"` URI string `json:"uri"` Param string `json:"param"` Goto string `json:"goto"` Finish int8 `json:"finish"` Index string `json:"index"` MTime xtime.Time `json:"mtime"` NewestEpIndex string `json:"newest_ep_index"` IsStarted int `json:"is_started"` IsFinish string `json:"is_finish"` NewestEpID string `json:"newest_ep_id"` TotalCount string `json:"total_count"` Attention string `json:"attention"` }
BangumiItem struct
func (*BangumiItem) FromSeason ¶
func (i *BangumiItem) FromSeason(b *bangumi.Season)
FromSeason func
type BangumiList ¶
type BangumiList struct { Count int `json:"count"` Item []*BangumiItem `json:"item"` }
BangumiList struct
type Card ¶
type Card struct { Mid string `json:"mid"` Name string `json:"name"` Approve bool `json:"approve"` Sex string `json:"sex"` Rank string `json:"rank"` Face string `json:"face"` DisplayRank string `json:"DisplayRank"` Regtime int64 `json:"regtime"` Spacesta int `json:"spacesta"` Birthday string `json:"birthday"` Place string `json:"place"` Description string `json:"description"` Article int `json:"article"` Attentions []int64 `json:"attentions"` Fans int `json:"fans"` Friend int `json:"friend"` Attention int `json:"attention"` Sign string `json:"sign"` LevelInfo LevelInfo `json:"level_info"` Pendant PendantInfo `json:"pendant"` Nameplate NameplateInfo `json:"nameplate"` OfficialVerify OfficialInfo `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"` FansGroup int `json:"fans_group,omitempty"` Audio int `json:"audio,omitempty"` FansUnread bool `json:"fans_unread,omitempty"` }
Card struct
type Clip ¶
type Clip struct { ID int64 `json:"id"` Duration int64 `json:"duration"` CTime xtime.Time `json:"ctime"` View int `json:"view"` Damaku int `json:"damaku"` Title string `json:"title"` Cover string `json:"cover"` Tag string `json:"tag"` }
Clip struct
type ClipList ¶
type ClipList struct { Count int `json:"count"` More int `json:"has_more"` Offset int `json:"next_offset"` Item []*Item `json:"item"` }
ClipList struct
type CommItem ¶
type CommItem struct { ID int `json:"id"` Name string `json:"name"` Desc string `json:"desc"` Thumb string `json:"thumb"` PostCount int `json:"post_count"` MemberCount int `json:"member_count"` PostNickname string `json:"post_nickname"` MemberNickname string `json:"member_nickname"` }
CommItem struct
func (*CommItem) FromCommunity ¶
FromCommunity func
type Contributes ¶
type Contributes struct { Tab *Tab `json:"tab,omitempty"` Items []*Item `json:"items,omitempty"` Links *Links `json:"links,omitempty"` }
Contributes struct
type Item ¶
type Item struct { ID int64 `json:"id,omitempty"` TypeName string `json:"tname,omitempty"` Category *article.Category `json:"category,omitempty"` Title string `json:"title,omitempty"` Cover string `json:"cover,omitempty"` Tag string `json:"tag,omitempty"` Tags []*article.Tag `json:"tags,omitempty"` Desc string `json:"description,omitempty"` URI string `json:"uri,omitempty"` Param string `json:"param,omitempty"` Goto string `json:"goto,omitempty"` Length string `json:"length,omitempty"` Duration int64 `json:"duration,omitempty"` Banner string `json:"banner,omitempty"` Play int `json:"play,omitempty"` Comment int `json:"comment,omitempty"` Danmaku int `json:"danmaku,omitempty"` Count int `json:"count,omitempty"` Reply int `json:"reply,omitempty"` CTime xtime.Time `json:"ctime,omitempty"` MTime xtime.Time `json:"mtime,omitempty"` ImageURLs []string `json:"image_urls,omitempty"` Pictures []*bplus.Pictures `json:"pictures,omitempty"` Words int64 `json:"words,omitempty"` Stats *article.Stats `json:"stats,omitempty"` AuthType int `json:"authType,omitempty"` Member int64 `json:"member,omitempty"` }
Item struct
type LevelInfo ¶
type LevelInfo struct { Cur int32 `json:"current_level"` Min int32 `json:"current_min"` NowExp int32 `json:"current_exp"` NextExp interface{} `json:"next_exp"` }
LevelInfo struct
type Mine ¶
type Mine struct { Mid int64 `json:"mid"` Name string `json:"name"` Face string `json:"face"` Coin float64 `json:"coin"` BCoin float64 `json:"bcoin"` Sex int32 `json:"sex"` Rank int32 `json:"rank"` Silence int32 `json:"silence"` EndTime int64 `json:"end_time,omitempty"` ShowVideoup int `json:"show_videoup"` ShowCreative int `json:"show_creative"` Level int32 `json:"level"` VipType int32 `json:"vip_type"` AudioType int `json:"audio_type"` Dynamic int64 `json:"dynamic"` Following int64 `json:"following"` Follower int64 `json:"follower"` NewFollowers int64 `json:"new_followers"` Official struct { Type int8 `json:"type"` Desc string `json:"desc"` } `json:"official_verify"` Pendant *Pendant `json:"pendant,omitempty"` Sections []*Section `json:"sections,omitempty"` IpadSections []*SectionItem `json:"ipad_sections,omitempty"` IpadUpperSections []*SectionItem `json:"ipad_upper_sections,omitempty"` }
Mine my center struct
type MineParam ¶
type MineParam struct { MobiApp string `form:"mobi_app"` Device string `form:"device"` Build int `form:"build"` Platform string `form:"platform"` Mid int64 `form:"mid"` Filtered string `form:"filtered"` }
MineParam struct
type Myinfo ¶
type Myinfo struct { Mid int64 `json:"mid"` Name string `json:"name"` Sign string `json:"sign"` Coins float64 `json:"coins"` Birthday string `json:"birthday"` Face string `json:"face"` Sex int `json:"sex"` Level int32 `json:"level"` Rank int32 `json:"rank"` Silence int32 `json:"silence"` EndTime int64 `json:"end_time,omitempty"` Vip accmdl.VipInfo `json:"vip"` EmailStatus int32 `json:"email_status"` TelStatus int32 `json:"tel_status"` Official accv1.OfficialInfo `json:"official"` Identification int32 `json:"identification"` Pendant *Pendant `json:"pendant,omitempty"` }
Myinfo myinfo
type NameplateInfo ¶
type NameplateInfo struct { Nid int `json:"nid"` Name string `json:"name"` Image string `json:"image"` ImageSmall string `json:"image_small"` Level string `json:"level"` Condition string `json:"condition"` }
NameplateInfo struct
type OfficialInfo ¶
type OfficialInfo struct { Type int8 `json:"type"` Desc string `json:"desc"` Role int8 `json:"role"` Title string `json:"title"` }
OfficialInfo struct
type PendantInfo ¶
type PendantInfo struct { Pid int `json:"pid"` Name string `json:"name"` Image string `json:"image"` Expire int `json:"expire"` }
PendantInfo struct
type Pictures ¶
type Pictures struct { ImgSrc string `json:"img_src"` ImgWidth string `json:"img_width"` ImgHeight string `json:"img_height"` }
Pictures struct
type Section ¶
type Section struct { Title string `json:"title"` Items []*SectionItem `json:"items"` }
Section for mine page, like 【个人中心】【我的服务】
type SectionItem ¶
type SectionItem struct { Title string `json:"title"` URI string `json:"uri"` Icon string `json:"icon"` NeedLogin int8 `json:"need_login,omitempty"` RedDot int8 `json:"red_dot,omitempty"` }
SectionItem like 【离线缓存】 【历史记录】,a part of section
type Setting ¶
type Setting struct { Channel int `json:"channel,omitempty"` FavVideo int `json:"fav_video"` CoinsVideo int `json:"coins_video"` LikesVideo int `json:"likes_video"` Bangumi int `json:"bangumi"` PlayedGame int `json:"played_game"` Groups int `json:"groups"` }
Setting struct
type Space ¶
type Space struct { Relation int `json:"relation"` Medal int `json:"medal,omitempty"` Attention uint32 `json:"attention,omitempty"` Setting *Setting `json:"setting,omitempty"` Tab *Tab `json:"tab,omitempty"` Card *Card `json:"card,omitempty"` Space *Mob `json:"images,omitempty"` Shop *Shop `json:"shop,omitempty"` Live json.RawMessage `json:"live,omitempty"` Elec *elec.Info `json:"elec,omitempty"` Archive *ArcList `json:"archive,omitempty"` Article *ArticleList `json:"article,omitempty"` Clip *ClipList `json:"clip,omitempty"` Album *AlbumList `json:"album,omitempty"` Favourite *FavList `json:"favourite,omitempty"` Season *BangumiList `json:"season,omitempty"` CoinArc *ArcList `json:"coin_archive,omitempty"` LikeArc *ArcList `json:"like_archive,omitempty"` Audios *AudioList `json:"audios,omitempty"` Community *CommuList `json:"community,omitempty"` }
Space struct
type Tab ¶
type Tab struct { Archive bool `json:"archive"` Article bool `json:"article"` Clip bool `json:"clip"` Album bool `json:"album"` Favorite bool `json:"favorite"` Bangumi bool `json:"bangumi"` Coin bool `json:"coin"` Like bool `json:"like"` Community bool `json:"community"` Dynamic bool `json:"dynamic"` Audios bool `json:"audios"` Shop bool `json:"shop"` }
Tab struct
Click to show internal directories.
Click to hide internal directories.