model

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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,
	}
)
View Source
var (
	ErrInvalidLengthProto = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProto   = fmt.Errorf("proto: integer overflow")
)
View Source
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.

View Source
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) Descriptor() ([]byte, []int)

func (*AidReason) Marshal

func (m *AidReason) Marshal() (dAtA []byte, err error)

func (*AidReason) MarshalTo

func (m *AidReason) MarshalTo(dAtA []byte) (int, error)

func (*AidReason) ProtoMessage

func (*AidReason) ProtoMessage()

func (*AidReason) Reset

func (m *AidReason) Reset()

func (*AidReason) Size

func (m *AidReason) Size() (n int)

func (*AidReason) String

func (m *AidReason) String() string

func (*AidReason) Unmarshal

func (m *AidReason) Unmarshal(dAtA []byte) error

func (*AidReason) XXX_DiscardUnknown

func (m *AidReason) XXX_DiscardUnknown()

func (*AidReason) XXX_Marshal

func (m *AidReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AidReason) XXX_Merge

func (dst *AidReason) XXX_Merge(src proto.Message)

func (*AidReason) XXX_Size

func (m *AidReason) XXX_Size() int

func (*AidReason) XXX_Unmarshal

func (m *AidReason) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *AidReasons) MarshalTo(dAtA []byte) (int, 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.

func (*ArcItem) FromArc

func (ac *ArcItem) FromArc(arc *v1.Arc)

FromArc from archive to space act item.

type ArchiveReason

type ArchiveReason struct {
	*v1.Arc
	Reason string `json:"reason"`
}

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 AudioCard

type AudioCard struct {
	Type   int `json:"type"`
	Status int `json:"status"`
}

AudioCard .

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"`
	ShareURL      string `json:"share_url"`
	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

type ChannelArcSort struct {
	Aid      int64 `json:"aid"`
	OrderNum int   `json:"order_num"`
}

ChannelArcSort channel archive sort struct

type ChannelDetail

type ChannelDetail struct {
	*Channel
	Archives []*v1.Arc `json:"archives"`
}

ChannelDetail channel detail info

type ChannelExtra

type ChannelExtra struct {
	Aid   int64
	Cid   int64
	Count int
	Cover string
}

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 DyList

type DyList struct {
	HasMore int       `json:"has_more"`
	Cards   []*DyCard `json:"cards"`
}

DyList dynamic list.

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

func (*DyResult) FromCard

func (d *DyResult) FromCard(c *DyCard)

FromCard format dynamic card.

type DyTotal

type DyTotal struct {
	HasMore bool      `json:"has_more"`
	List    []*DyItem `json:"list"`
}

DyTotal out dynamic total.

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 FavNav

type FavNav struct {
	Archive  []*model.VideoFolder `json:"archive"`
	Playlist int                  `json:"playlist"`
	Topic    int                  `json:"topic"`
	Article  int                  `json:"article"`
	Album    int                  `json:"album"`
	Movie    int                  `json:"movie"`
}

FavNav fav nav struct.

type Game

type Game struct {
	Website string `json:"website"`
	Image   string `json:"image"`
	Name    string `json:"name"`
}

Game game struct.

type IndexOrder

type IndexOrder struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

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 NavNum struct {
	Video     int64 `json:"video"`
	Bangumi   int   `json:"bangumi"`
	Channel   *Num  `json:"channel"`
	Favourite *Num  `json:"favourite"`
	Tag       int   `json:"tag"`
	Article   int   `json:"article"`
	Playlist  int   `json:"playlist"`
	Album     int64 `json:"album"`
	Audio     int   `json:"audio"`
}

NavNum nav num struct.

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) Descriptor() ([]byte, []int)

func (*Notice) Marshal

func (m *Notice) Marshal() (dAtA []byte, err error)

func (*Notice) MarshalTo

func (m *Notice) MarshalTo(dAtA []byte) (int, error)

func (*Notice) ProtoMessage

func (*Notice) ProtoMessage()

func (*Notice) Reset

func (m *Notice) Reset()

func (*Notice) Size

func (m *Notice) Size() (n int)

func (*Notice) String

func (m *Notice) String() string

func (*Notice) Unmarshal

func (m *Notice) Unmarshal(dAtA []byte) error

func (*Notice) XXX_DiscardUnknown

func (m *Notice) XXX_DiscardUnknown()

func (*Notice) XXX_Marshal

func (m *Notice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Notice) XXX_Merge

func (dst *Notice) XXX_Merge(src proto.Message)

func (*Notice) XXX_Size

func (m *Notice) XXX_Size() int

func (*Notice) XXX_Unmarshal

func (m *Notice) XXX_Unmarshal(b []byte) error

type Num

type Num struct {
	Master int `json:"master"`
	Guest  int `json:"guest"`
}

Num num struct.

type Page

type Page struct {
	Pn    int `json:"pn"`
	Ps    int `json:"ps"`
	Total int `json:"total"`
}

Page page return data struct.

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 Privacy

type Privacy struct {
	Privacy string `json:"privacy"`
	Status  int    `json:"status"`
}

Privacy privacy 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"`
	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) MarshalTo

func (m *ThemeDetail) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *ThemeDetails) MarshalTo(dAtA []byte) (int, 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 ThemeInfo

type ThemeInfo struct {
	SID         int64 `json:"sid"`
	IsActivated int64 `json:"is_activated"`
}

ThemeInfo theme info.

type TopPhoto

type TopPhoto struct {
	SImg string `json:"s_img"`
	LImg string `json:"l_img"`
}

TopPhoto top photo struct.

type UpArc

type UpArc struct {
	Count int64      `json:"count"`
	List  []*ArcItem `json:"list"`
}

UpArc up archive struct

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

func (v *VideoItem) FromArchive(arc *v1.Arc)

FromArchive from archive to video item.

type WebArc

type WebArc struct {
	Page     WebPage    `json:"page"`
	Archives []*ArcItem `json:"archives"`
}

WebArc .

type WebIndex

type WebIndex struct {
	Account *AccInfo `json:"account"`
	Setting *Setting `json:"setting"`
	Archive *WebArc  `json:"archive"`
}

WebIndex .

type WebPage

type WebPage struct {
	Pn    int32 `json:"pn"`
	Ps    int32 `json:"ps"`
	Count int64 `json:"count"`
}

WebPage .

Jump to

Keyboard shortcuts

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