Documentation ¶
Index ¶
- Variables
- type AccBlock
- type AccInfo
- type AidReason
- func (*AidReason) Descriptor() ([]byte, []int)
- func (m *AidReason) Marshal() (dAtA []byte, err error)
- func (m *AidReason) MarshalTo(dAtA []byte) (int, error)
- func (*AidReason) ProtoMessage()
- func (m *AidReason) Reset()
- func (m *AidReason) Size() (n int)
- func (m *AidReason) String() string
- func (m *AidReason) Unmarshal(dAtA []byte) error
- func (m *AidReason) XXX_DiscardUnknown()
- func (m *AidReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AidReason) XXX_Merge(src proto.Message)
- func (m *AidReason) XXX_Size() int
- func (m *AidReason) XXX_Unmarshal(b []byte) error
- type AidReasons
- func (*AidReasons) Descriptor() ([]byte, []int)
- func (m *AidReasons) Marshal() (dAtA []byte, err error)
- func (m *AidReasons) MarshalTo(dAtA []byte) (int, error)
- func (*AidReasons) ProtoMessage()
- func (m *AidReasons) Reset()
- func (m *AidReasons) Size() (n int)
- func (m *AidReasons) String() string
- func (m *AidReasons) Unmarshal(dAtA []byte) error
- func (m *AidReasons) XXX_DiscardUnknown()
- func (m *AidReasons) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AidReasons) XXX_Merge(src proto.Message)
- func (m *AidReasons) XXX_Size() int
- func (m *AidReasons) XXX_Unmarshal(b []byte) error
- type Album
- type AlbumCount
- type AppAccInfo
- type AppGame
- type AppIndex
- type AppIndexArg
- type AppTab
- type ArcItem
- type ArchiveReason
- type Audio
- type AudioCard
- type AudioUpperCert
- type Bangumi
- type Channel
- type ChannelArc
- type ChannelArcSort
- type ChannelDetail
- type ChannelExtra
- type CoinArc
- type DyActItem
- type DyCard
- type DyExtension
- type DyItem
- type DyList
- type DyListArg
- type DyResult
- type DyTotal
- type ElecInfo
- type FavArcArg
- type FavNav
- type Game
- type IndexOrder
- type Live
- type NavNum
- type Notice
- func (*Notice) Descriptor() ([]byte, []int)
- func (m *Notice) Marshal() (dAtA []byte, err error)
- func (m *Notice) MarshalTo(dAtA []byte) (int, error)
- func (*Notice) ProtoMessage()
- func (m *Notice) Reset()
- func (m *Notice) Size() (n int)
- func (m *Notice) String() string
- func (m *Notice) Unmarshal(dAtA []byte) error
- func (m *Notice) XXX_DiscardUnknown()
- func (m *Notice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Notice) XXX_Merge(src proto.Message)
- func (m *Notice) XXX_Size() int
- func (m *Notice) XXX_Unmarshal(b []byte) error
- type Num
- type Page
- type PicItem
- type Privacy
- type Relation
- type SearchArg
- type SearchRes
- type SearchTList
- type SearchVList
- type Setting
- type ShopInfo
- type ShopLinkInfo
- type Tag
- type ThemeDetail
- func (*ThemeDetail) Descriptor() ([]byte, []int)
- func (m *ThemeDetail) Marshal() (dAtA []byte, err error)
- func (m *ThemeDetail) MarshalTo(dAtA []byte) (int, error)
- func (*ThemeDetail) ProtoMessage()
- func (m *ThemeDetail) Reset()
- func (m *ThemeDetail) Size() (n int)
- func (m *ThemeDetail) String() string
- func (m *ThemeDetail) Unmarshal(dAtA []byte) error
- func (m *ThemeDetail) XXX_DiscardUnknown()
- func (m *ThemeDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ThemeDetail) XXX_Merge(src proto.Message)
- func (m *ThemeDetail) XXX_Size() int
- func (m *ThemeDetail) XXX_Unmarshal(b []byte) error
- type ThemeDetails
- func (*ThemeDetails) Descriptor() ([]byte, []int)
- func (m *ThemeDetails) Marshal() (dAtA []byte, err error)
- func (m *ThemeDetails) MarshalTo(dAtA []byte) (int, error)
- func (*ThemeDetails) ProtoMessage()
- func (m *ThemeDetails) Reset()
- func (m *ThemeDetails) Size() (n int)
- func (m *ThemeDetails) String() string
- func (m *ThemeDetails) Unmarshal(dAtA []byte) error
- func (m *ThemeDetails) XXX_DiscardUnknown()
- func (m *ThemeDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ThemeDetails) XXX_Merge(src proto.Message)
- func (m *ThemeDetails) XXX_Size() int
- func (m *ThemeDetails) XXX_Unmarshal(b []byte) error
- type ThemeInfo
- type TopPhoto
- type UpArc
- type UpArcStat
- type UpArtStat
- type UpStat
- type UserProfile
- type VideoItem
- type WebArc
- type WebIndex
- type WebPage
Constants ¶
This section is empty.
Variables ¶
var ( // DefaultProfileStat . DefaultProfileStat = &accmdl.ProfileStatReply{ Profile: DefaultProfile, LevelInfo: accmdl.LevelInfo{}, } // DefaultProfile . DefaultProfile = &accmdl.Profile{ Name: "bilibili", Sex: "保密", Face: "https://static.hdslb.com/images/member/noface.gif", Sign: "哔哩哔哩 (゜-゜)つロ 干杯~-bilibili", Rank: 5000, } )
var ( ErrInvalidLengthProto = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProto = fmt.Errorf("proto: integer overflow") )
var ( PcyBangumi = "bangumi" PcyTag = "tags" PcyFavVideo = "fav_video" PcyCoinVideo = "coins_video" PcyGroup = "groups" PcyGame = "played_game" PcyChannel = "channel" PcyUserInfo = "user_info" PcyLikeVideo = "likes_video" DefaultPrivacy = map[string]int{ PcyBangumi: 1, PcyTag: 1, PcyFavVideo: 1, PcyCoinVideo: 1, PcyGroup: 1, PcyGame: 1, PcyChannel: 1, PcyUserInfo: 1, PcyLikeVideo: 1, } DefaultIndexOrder = []*IndexOrder{ {ID: 1, Name: "我的稿件"}, {ID: 8, Name: "我的专栏"}, {ID: 7, Name: "我的频道"}, {ID: 2, Name: "我的收藏夹"}, {ID: 3, Name: "订阅番剧"}, {ID: 4, Name: "订阅标签"}, {ID: 5, Name: "最近投币的视频"}, {ID: 6, Name: "我的圈子"}, {ID: 9, Name: "我的相簿"}, {ID: 21, Name: "公告"}, {ID: 22, Name: "直播间"}, {ID: 23, Name: "个人资料"}, {ID: 24, Name: "官方活动"}, {ID: 25, Name: "最近玩过的游戏"}, } IndexOrderMap = indexOrderMap() )
DefaultPrivacy default privacy.
var ( // ArticleSortType article list sort types. ArticleSortType = map[string]int{ "publish_time": artmdl.FieldDefault, "view": artmdl.FieldView, "fav": artmdl.FieldFav, } // PrivacyFields privacy allowed field. PrivacyFields = []string{ "bangumi", "tags", "fav_video", "coins_video", "groups", "played_game", "channel", "user_info", "likes_video", } //ArcCheckType search arc check type. ArcCheckType = map[string]int{ "channel": 1, } )
Functions ¶
This section is empty.
Types ¶
type AccBlock ¶
type AccBlock struct { Status int `json:"status"` IsDue int `json:"is_due"` IsAnswered int `json:"is_answered"` }
AccBlock acc block
type AccInfo ¶
type AccInfo struct { Mid int64 `json:"mid"` Name string `json:"name"` Sex string `json:"sex"` Face string `json:"face"` Sign string `json:"sign"` Rank int32 `json:"rank"` Level int32 `json:"level"` JoinTime int32 `json:"jointime"` Moral int32 `json:"moral"` Silence int32 `json:"silence"` Birthday string `json:"birthday"` Coins float64 `json:"coins"` FansBadge bool `json:"fans_badge"` Official accmdl.OfficialInfo `json:"official"` Vip struct { Type int32 `json:"type"` Status int32 `json:"status"` } `json:"vip"` IsFollowed bool `json:"is_followed"` TopPhoto string `json:"top_photo"` Theme interface{} `json:"theme"` }
AccInfo account info.
func (*AccInfo) FromCard ¶
func (ai *AccInfo) FromCard(c *accmdl.ProfileStatReply)
FromCard from account card.
type AidReason ¶
type AidReason struct { Aid int64 `protobuf:"varint,1,opt,name=Aid,proto3" json:"aid"` Reason string `protobuf:"bytes,2,opt,name=Reason,proto3" json:"reason"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AidReason) Descriptor ¶
func (*AidReason) ProtoMessage ¶
func (*AidReason) ProtoMessage()
func (*AidReason) XXX_DiscardUnknown ¶
func (m *AidReason) XXX_DiscardUnknown()
func (*AidReason) XXX_Marshal ¶
func (*AidReason) XXX_Unmarshal ¶
type AidReasons ¶
type AidReasons struct { List []*AidReason `protobuf:"bytes,1,rep,name=List" json:"List,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AidReasons) Descriptor ¶
func (*AidReasons) Descriptor() ([]byte, []int)
func (*AidReasons) Marshal ¶
func (m *AidReasons) Marshal() (dAtA []byte, err error)
func (*AidReasons) ProtoMessage ¶
func (*AidReasons) ProtoMessage()
func (*AidReasons) Reset ¶
func (m *AidReasons) Reset()
func (*AidReasons) Size ¶
func (m *AidReasons) Size() (n int)
func (*AidReasons) String ¶
func (m *AidReasons) String() string
func (*AidReasons) Unmarshal ¶
func (m *AidReasons) Unmarshal(dAtA []byte) error
func (*AidReasons) XXX_DiscardUnknown ¶
func (m *AidReasons) XXX_DiscardUnknown()
func (*AidReasons) XXX_Marshal ¶
func (m *AidReasons) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AidReasons) XXX_Merge ¶
func (dst *AidReasons) XXX_Merge(src proto.Message)
func (*AidReasons) XXX_Size ¶
func (m *AidReasons) XXX_Size() int
func (*AidReasons) XXX_Unmarshal ¶
func (m *AidReasons) XXX_Unmarshal(b []byte) error
type Album ¶
type Album struct { DocID int64 `json:"doc_id"` PosterUID int64 `json:"poster_uid"` Title string `json:"title"` Description string `json:"description"` Pictures []*PicItem `json:"pictures"` Count int64 `json:"count"` Ctime time.Time `json:"ctime"` View int64 `json:"view"` Like int64 `json:"like"` }
Album album struct.
type AlbumCount ¶
type AlbumCount struct { AllCount int64 `json:"all_count"` DrawCount int64 `json:"draw_count"` PhotoCount int64 `json:"photo_count"` DailyCount int64 `json:"daily_count"` }
AlbumCount album count struct.
type AppAccInfo ¶
type AppAccInfo struct { Mid int64 `json:"mid"` Name string `json:"name"` Sex string `json:"sex"` Face string `json:"face"` Sign string `json:"sign"` Rank int32 `json:"rank"` Level int32 `json:"level"` LevelInfo accwar.LevelInfo `json:"level_info"` Pendant model.PendantInfo `json:"pendant"` Silence int32 `json:"silence"` Vip struct { Type int32 `json:"vipType"` VipStatus int32 `json:"vipStatus"` } `json:"vip"` OfficialInfo struct { Type int `json:"type"` Desc string `json:"desc"` } `json:"official_info"` Following int64 `json:"following"` Follower int64 `json:"follower"` Relation interface{} `json:"relation"` BeRelation interface{} `json:"be_relation"` FansGroup int `json:"fans_group"` Audio int `json:"audio"` Shop interface{} `json:"shop"` Elec interface{} `json:"elec"` Live interface{} `json:"live"` FansBadge bool `json:"fans_badge"` TopPhoto string `json:"top_photo"` Block *AccBlock `json:"block,omitempty"` }
AppAccInfo app acc info struct.
func (*AppAccInfo) FromProfile ¶
func (ai *AppAccInfo) FromProfile(p *accwar.ProfileStatReply)
FromProfile from account profile.
type AppGame ¶
type AppGame struct { GameBaseID int64 `json:"game_base_id"` GameName string `json:"game_name"` GameIcon string `json:"game_icon"` Grade float64 `json:"grade"` DetailURL string `json:"detail_url"` }
AppGame app game struct.
type AppIndex ¶
type AppIndex struct { Info *AppAccInfo `json:"info"` Tab *AppTab `json:"tab"` Dynamic *DyTotal `json:"dynamic"` Archive *UpArc `json:"archive"` }
AppIndex app index data.
type AppIndexArg ¶
type AppIndexArg struct { Mid int64 Vmid int64 `form:"mid" validate:"min=1"` Qn int `form:"qn" default:"16" validate:"min=1"` Platform string `form:"platform" default:"android"` Ps int32 `form:"ps" default:"16" validate:"min=1"` Device string `form:"device"` }
AppIndexArg .
type AppTab ¶
type AppTab struct { Dynamic bool `json:"dynamic"` Shop bool `json:"shop"` Archive bool `json:"video"` Article bool `json:"article"` Audio bool `json:"audio"` Album bool `json:"album"` Favorite bool `json:"favorite"` Bangumi bool `json:"bangumi"` Game bool `json:"game"` }
AppTab tab if show.
type ArcItem ¶
type ArcItem struct { Aid int64 `json:"aid"` Pic string `json:"pic"` Title string `json:"title"` Duration int64 `json:"duration"` Author struct { Mid int64 `json:"mid"` Name string `json:"name"` Face string `json:"face"` } `json:"author"` Stat struct { View interface{} `json:"view"` Danmaku int32 `json:"danmaku"` Reply int32 `json:"reply"` Fav int32 `json:"favorite"` Coin int32 `json:"coin"` Share int32 `json:"share"` Like int32 `json:"like"` } `json:"stat"` Rights v1.Rights `json:"rights"` Pubdate time.Time `json:"pubdate"` }
ArcItem space archive item.
type ArchiveReason ¶
ArchiveReason archive with reason struct.
type Audio ¶
type Audio struct { MenuID int64 `json:"menu_id"` Title string `json:"title"` CoverURL string `json:"cover_url"` PlayNum int `json:"play_num"` RecordNum int `json:"record_num"` Ctgs []*struct { ItemID int64 `json:"item_id"` ItemVal string `json:"item_val"` } `json:"ctgs"` Type int `json:"type"` }
Audio .
type AudioUpperCert ¶
type AudioUpperCert struct { Cert *struct { Type int `json:"type"` Desc string `json:"desc"` } `json:"cert"` }
AudioUpperCert .
type Bangumi ¶
type Bangumi struct { SeasonID string `json:"season_id"` Title string `json:"title"` IsFinish string `json:"is_finish"` Favorites string `json:"favorites"` NewestEpIndex string `json:"newest_ep_index"` LastEpIndex string `json:"last_ep_index"` TotalCount string `json:"total_count"` Cover string `json:"cover"` Evaluate string `json:"evaluate"` Brief string `json:"brief"` }
Bangumi bangumi struct.
type Channel ¶
type Channel struct { Cid int64 `json:"cid"` Mid int64 `json:"mid"` Name string `json:"name"` Intro string `json:"intro"` Mtime xtime.Time `json:"mtime"` Count int `json:"count"` Cover string `json:"cover"` }
Channel channel struct
type ChannelArc ¶
type ChannelArc struct { ID int64 `json:"id"` Mid int64 `json:"mid"` Cid int64 `json:"cid"` Aid int64 `json:"aid"` OrderNum int `json:"order_num"` Mtime xtime.Time `json:"mtime"` }
ChannelArc channel video struct
type ChannelArcSort ¶
ChannelArcSort channel archive sort struct
type ChannelDetail ¶
ChannelDetail channel detail info
type ChannelExtra ¶
ChannelExtra channel extra fields
type CoinArc ¶
type CoinArc struct { *v1.Arc Coins int64 `json:"coins"` Time int64 `json:"time"` IP string `json:"ip"` }
CoinArc coin archive.
type DyActItem ¶
type DyActItem struct { Aid int64 `json:"aid"` Type int `json:"type"` ActionTime int64 `json:"action_time"` Privacy bool `json:"privacy"` }
DyActItem dynamic other action items.
type DyCard ¶
type DyCard struct { Card json.RawMessage `json:"card"` Desc struct { UID int64 `json:"uid"` Type int `json:"type"` ACL int `json:"acl"` Rid int64 `json:"rid"` View int32 `json:"view"` Repost int32 `json:"repost"` Comment int32 `json:"comment"` Like int32 `json:"like"` IsLiked int32 `json:"is_liked"` DynamicID int64 `json:"dynamic_id"` CommentID int64 `json:"comment_id"` Timestamp int64 `json:"timestamp"` PreDyID int64 `json:"pre_dy_id"` OrigDyID int64 `json:"orig_dy_id"` OrigType int `json:"orig_type"` RType int `json:"r_type"` InnerID int64 `json:"inner_id"` UserProfile *UserProfile `json:"user_profile,omitempty"` } `json:"desc"` Extension *DyExtension `json:"extension,omitempty"` }
DyCard dynamic data.
type DyExtension ¶
type DyExtension struct { VoteCfg *struct { VoteID int64 `json:"vote_id"` Desc string `json:"desc"` JoinNum int64 `json:"join_num"` } `json:"vote_cfg,omitempty"` }
DyExtension .
type DyItem ¶
type DyItem struct { Type int `json:"type"` Top bool `json:"top"` Card *DyResult `json:"card,omitempty"` Archive *VideoItem `json:"video,omitempty"` Fold []*DyItem `json:"fold,omitempty"` Ctime int64 `json:"ctime"` Privacy bool `json:"privacy"` }
DyItem out dynamic item.
type DyListArg ¶
type DyListArg struct { Mid int64 `form:"-"` Vmid int64 `form:"mid" validate:"min=1"` DyID int64 `form:"dy_id"` Qn int `form:"qn" default:"16" validate:"min=1"` Pn int `form:"pn" default:"1" validate:"min=1"` LastTime int64 `form:"last_time"` }
DyListArg .
type DyResult ¶
type DyResult struct { Card json.RawMessage `json:"card"` Desc struct { UID int64 `json:"uid"` Type int `json:"type"` ACL int `json:"acl"` Rid int64 `json:"rid"` View int32 `json:"view"` Repost int32 `json:"repost"` Comment int32 `json:"comment"` Like int32 `json:"like"` IsLiked int32 `json:"is_liked"` DynamicID string `json:"dynamic_id"` CommentID int64 `json:"comment_id"` Timestamp int64 `json:"timestamp"` PreDyID string `json:"pre_dy_id"` OrigDyID string `json:"orig_dy_id"` OrigType int `json:"orig_type"` RType int `json:"r_type"` InnerID int64 `json:"inner_id"` UserProfile *UserProfile `json:"user_profile,omitempty"` } `json:"desc"` Extension *DyExtension `json:"extension,omitempty"` }
DyResult dynamic result
type ElecInfo ¶
type ElecInfo struct { Start int64 `json:"start"` Show bool `json:"show"` Total int `json:"total"` Count int `json:"count"` State int `json:"state"` List json.RawMessage `json:"list,omitempty"` User json.RawMessage `json:"user,omitempty"` ElecSet json.RawMessage `json:"elec_set,omitempty"` }
ElecInfo elec info.
type FavArcArg ¶
type FavArcArg struct { Vmid int64 `form:"vmid" validate:"min=1"` Fid int64 `form:"fid" validate:"min=-1"` Tid int64 `form:"tid"` Keyword string `form:"keyword"` Order string `form:"order"` Pn int `form:"pn" default:"1" validate:"min=1"` Ps int `form:"ps" default:"30" validate:"min=1"` }
FavArcArg .
type Game ¶
type Game struct { Website string `json:"website"` Image string `json:"image"` Name string `json:"name"` }
Game game struct.
type IndexOrder ¶
IndexOrder index order struct.
type Live ¶
type Live struct { RoomStatus int `json:"roomStatus"` LiveStatus int `json:"liveStatus"` URL string `json:"url"` Title string `json:"title"` Cover string `json:"cover"` Online int `json:"online"` RoomID int64 `json:"roomid"` RoundStatus int `json:"roundStatus"` BroadcastType int `json:"broadcast_type"` }
Live .
type Notice ¶
type Notice struct { Notice string `protobuf:"bytes,1,opt,name=Notice,proto3" json:"notice"` IsForbid int64 `protobuf:"varint,2,opt,name=IsForbid,proto3" json:"is_forbid"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Notice) Descriptor ¶
func (*Notice) ProtoMessage ¶
func (*Notice) ProtoMessage()
func (*Notice) XXX_DiscardUnknown ¶
func (m *Notice) XXX_DiscardUnknown()
func (*Notice) XXX_Marshal ¶
func (*Notice) XXX_Unmarshal ¶
type PicItem ¶
type PicItem struct { ImgSrc string `json:"img_src"` ImgWidth int `json:"img_width"` ImgHeight int `json:"img_height"` ImgSize int `json:"img_size"` }
PicItem picture item struct.
type Relation ¶
type Relation struct { Relation interface{} `json:"relation"` BeRelation interface{} `json:"be_relation"` }
Relation .
type SearchArg ¶
type SearchArg struct { Mid int64 `form:"mid" validate:"gt=0"` Tid int64 `form:"tid"` Order string `form:"order"` Keyword string `form:"keyword"` Pn int `form:"pn" validate:"gt=0"` Ps int `form:"ps" validate:"gt=0,lte=100"` CheckType string `form:"check_type"` CheckID int64 `form:"check_id"` }
SearchArg arc search param.
type SearchRes ¶
type SearchRes struct { TList map[string]*SearchTList `json:"tlist"` VList []*SearchVList `json:"vlist"` }
SearchRes search res data.
type SearchTList ¶
type SearchTList struct { Tid int64 `json:"tid"` Count int64 `json:"count"` Name string `json:"name"` }
SearchTList search cate list.
type SearchVList ¶
type SearchVList struct { Comment int64 `json:"comment"` TypeID int64 `json:"typeid"` Play interface{} `json:"play"` Pic string `json:"pic"` SubTitle string `json:"subtitle"` Description string `json:"description"` Copyright string `json:"copyright"` Title string `json:"title"` Review int64 `json:"review"` Author string `json:"author"` Mid int64 `json:"mid"` Created string `json:"created"` Length string `json:"length"` VideoReview int64 `json:"video_review"` Aid int64 `json:"aid"` HideClick bool `json:"hide_click"` IsPay int `json:"is_pay"` IsUnionVideo int `json:"is_union_video"` }
SearchVList video list.
type Setting ¶
type Setting struct { Privacy map[string]int `json:"privacy"` IndexOrder []*IndexOrder `json:"index_order"` }
Setting setting struct.
type ShopInfo ¶
type ShopInfo struct { ID int64 `json:"id"` Mid int64 `json:"mid"` Name string `json:"name"` Logo string `json:"logo"` URL string `json:"url"` Status int `json:"status"` GoodsNum int64 `json:"goods_num"` MonthSales int64 `json:"month_sales"` StatusV string `json:"status_v"` }
ShopInfo shop info.
type ShopLinkInfo ¶
type ShopLinkInfo struct { ShopID int64 `json:"shopId"` VAppID string `json:"vAppId"` AppID string `json:"appId"` Name string `json:"name"` JumpURL string `json:"jumpUrl"` ShowItemsTab int `json:"showItemsTab"` }
ShopLinkInfo shop link info.
type Tag ¶
type Tag struct { ID int64 `json:"tag_id"` Name string `json:"tag_name"` Cover string `json:"cover"` }
Tag tag struct.
type ThemeDetail ¶
type ThemeDetail struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"id"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"name"` Icon string `protobuf:"bytes,3,opt,name=Icon,proto3" json:"icon"` TopPhoto string `protobuf:"bytes,4,opt,name=TopPhoto,proto3" json:"top_photo"` BgImg string `protobuf:"bytes,5,opt,name=BgImg,proto3" json:"bg_img"` IsActivated int64 `protobuf:"varint,6,opt,name=IsActivated,proto3" json:"is_activated"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ThemeDetail) Descriptor ¶
func (*ThemeDetail) Descriptor() ([]byte, []int)
func (*ThemeDetail) Marshal ¶
func (m *ThemeDetail) Marshal() (dAtA []byte, err error)
func (*ThemeDetail) ProtoMessage ¶
func (*ThemeDetail) ProtoMessage()
func (*ThemeDetail) Reset ¶
func (m *ThemeDetail) Reset()
func (*ThemeDetail) Size ¶
func (m *ThemeDetail) Size() (n int)
func (*ThemeDetail) String ¶
func (m *ThemeDetail) String() string
func (*ThemeDetail) Unmarshal ¶
func (m *ThemeDetail) Unmarshal(dAtA []byte) error
func (*ThemeDetail) XXX_DiscardUnknown ¶
func (m *ThemeDetail) XXX_DiscardUnknown()
func (*ThemeDetail) XXX_Marshal ¶
func (m *ThemeDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ThemeDetail) XXX_Merge ¶
func (dst *ThemeDetail) XXX_Merge(src proto.Message)
func (*ThemeDetail) XXX_Size ¶
func (m *ThemeDetail) XXX_Size() int
func (*ThemeDetail) XXX_Unmarshal ¶
func (m *ThemeDetail) XXX_Unmarshal(b []byte) error
type ThemeDetails ¶
type ThemeDetails struct { List []*ThemeDetail `protobuf:"bytes,1,rep,name=List" json:"List,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ThemeDetails) Descriptor ¶
func (*ThemeDetails) Descriptor() ([]byte, []int)
func (*ThemeDetails) Marshal ¶
func (m *ThemeDetails) Marshal() (dAtA []byte, err error)
func (*ThemeDetails) ProtoMessage ¶
func (*ThemeDetails) ProtoMessage()
func (*ThemeDetails) Reset ¶
func (m *ThemeDetails) Reset()
func (*ThemeDetails) Size ¶
func (m *ThemeDetails) Size() (n int)
func (*ThemeDetails) String ¶
func (m *ThemeDetails) String() string
func (*ThemeDetails) Unmarshal ¶
func (m *ThemeDetails) Unmarshal(dAtA []byte) error
func (*ThemeDetails) XXX_DiscardUnknown ¶
func (m *ThemeDetails) XXX_DiscardUnknown()
func (*ThemeDetails) XXX_Marshal ¶
func (m *ThemeDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ThemeDetails) XXX_Merge ¶
func (dst *ThemeDetails) XXX_Merge(src proto.Message)
func (*ThemeDetails) XXX_Size ¶
func (m *ThemeDetails) XXX_Size() int
func (*ThemeDetails) XXX_Unmarshal ¶
func (m *ThemeDetails) XXX_Unmarshal(b []byte) error
type UpArcStat ¶
type UpArcStat struct { View int64 `json:"view"` Reply int64 `json:"reply"` Dm int64 `json:"dm"` Fans int64 `json:"fans"` }
UpArcStat up archives stat struct.
type UpArtStat ¶
type UpArtStat struct { View int64 `json:"view"` Reply int64 `json:"reply"` Like int64 `json:"like"` Coin int64 `json:"coin"` Fav int64 `json:"fav"` PreView int64 `json:"-"` PreReply int64 `json:"-"` PreLike int64 `json:"-"` PreCoin int64 `json:"-"` PreFav int64 `json:"-"` IncrView int64 `json:"incr_view"` IncrReply int64 `json:"incr_reply"` IncrLike int64 `json:"incr_like"` IncrCoin int64 `json:"incr_coin"` IncrFav int64 `json:"incr_fav"` }
UpArtStat struct.
type UpStat ¶
type UpStat struct { Archive struct { View int64 `json:"view"` } `json:"archive"` Article struct { View int64 `json:"view"` } `json:"article"` }
UpStat up stat struct.
type UserProfile ¶
type UserProfile struct { Pendant struct { Pid int64 `json:"pid"` Name string `json:"name"` Image string `json:"image"` Expire int64 `json:"expire"` } `json:"pendant,omitempty"` DecorateCard struct { Mid int64 `json:"mid"` ID int64 `json:"id"` CardURL string `json:"card_url"` CardType int `json:"card_type"` Name string `json:"name"` ExpireTime int64 `json:"expire_time"` CardTypeName string `json:"card_type_name"` UID int64 `json:"uid"` } `json:"decorate_card,omitempty"` }
UserProfile dynamic item user profile.
type VideoItem ¶
type VideoItem struct { Aid int64 `json:"aid"` Pic string `json:"pic"` Title string `json:"title"` Duration int64 `json:"duration"` Author struct { Mid int64 `json:"mid"` Name string `json:"name"` Face string `json:"face"` } Stat struct { View int32 `json:"view"` Danmaku int32 `json:"danmaku"` Reply int32 `json:"reply"` Fav int32 `json:"favorite"` Coin int32 `json:"coin"` Share int32 `json:"share"` Like int32 `json:"like"` } Rights v1.Rights `json:"rights"` ActionTime int64 `json:"action_time"` }
VideoItem user action video item.
func (*VideoItem) FromArchive ¶
FromArchive from archive to video item.