Documentation
¶
Index ¶
- Variables
- type Arc
- func (*Arc) Descriptor() ([]byte, []int)deprecated
- func (x *Arc) GetAccess() int32
- func (x *Arc) GetAid() int64
- func (x *Arc) GetAttribute() int32
- func (x *Arc) GetAttributeV2() int64
- func (x *Arc) GetAuthor() *Author
- func (x *Arc) GetCopyright() int32
- func (x *Arc) GetCtime() int64
- func (x *Arc) GetDesc() string
- func (x *Arc) GetDimension() *Dimension
- func (x *Arc) GetDuration() int64
- func (x *Arc) GetDynamic() string
- func (x *Arc) GetFirstCid() int64
- func (x *Arc) GetForward() int64
- func (x *Arc) GetMissionId() int64
- func (x *Arc) GetOrderId() int64
- func (x *Arc) GetPic() string
- func (x *Arc) GetPubdate() int64
- func (x *Arc) GetRedirectUrl() string
- func (x *Arc) GetReportResult() string
- func (x *Arc) GetRights() *Rights
- func (x *Arc) GetSeasonId() int64
- func (x *Arc) GetStaffInfo() []*StaffInfo
- func (x *Arc) GetStat() *Stat
- func (x *Arc) GetState() int32
- func (x *Arc) GetTag() string
- func (x *Arc) GetTags() []string
- func (x *Arc) GetTitle() string
- func (x *Arc) GetTypeId() int32
- func (x *Arc) GetTypeName() string
- func (x *Arc) GetVideos() int64
- func (*Arc) ProtoMessage()
- func (x *Arc) ProtoReflect() protoreflect.Message
- func (x *Arc) Reset()
- func (x *Arc) String() string
- type Author
- type Dimension
- func (*Dimension) Descriptor() ([]byte, []int)deprecated
- func (x *Dimension) GetHeight() int64
- func (x *Dimension) GetRotate() int64
- func (x *Dimension) GetWidth() int64
- func (*Dimension) ProtoMessage()
- func (x *Dimension) ProtoReflect() protoreflect.Message
- func (x *Dimension) Reset()
- func (x *Dimension) String() string
- type Page
- func (*Page) Descriptor() ([]byte, []int)deprecated
- func (x *Page) GetCid() int64
- func (x *Page) GetDesc() string
- func (x *Page) GetDimension() *Dimension
- func (x *Page) GetDuration() int64
- func (x *Page) GetFrom() string
- func (x *Page) GetPage() int32
- func (x *Page) GetPart() string
- func (x *Page) GetVid() string
- func (x *Page) GetWebLink() string
- func (*Page) ProtoMessage()
- func (x *Page) ProtoReflect() protoreflect.Message
- func (x *Page) Reset()
- func (x *Page) String() string
- type Rights
- func (*Rights) Descriptor() ([]byte, []int)deprecated
- func (x *Rights) GetAutoplay() int32
- func (x *Rights) GetBp() int32
- func (x *Rights) GetDownload() int32
- func (x *Rights) GetElec() int32
- func (x *Rights) GetHd5() int32
- func (x *Rights) GetIsCooperation() int32
- func (x *Rights) GetMovie() int32
- func (x *Rights) GetNoBackground() int32
- func (x *Rights) GetNoReprint() int32
- func (x *Rights) GetPay() int32
- func (x *Rights) GetUgcPay() int32
- func (x *Rights) GetUgcPayPreview() int32
- func (*Rights) ProtoMessage()
- func (x *Rights) ProtoReflect() protoreflect.Message
- func (x *Rights) Reset()
- func (x *Rights) String() string
- type StaffInfo
- func (*StaffInfo) Descriptor() ([]byte, []int)deprecated
- func (x *StaffInfo) GetAttribute() int64
- func (x *StaffInfo) GetMid() int64
- func (x *StaffInfo) GetTitle() string
- func (*StaffInfo) ProtoMessage()
- func (x *StaffInfo) ProtoReflect() protoreflect.Message
- func (x *StaffInfo) Reset()
- func (x *StaffInfo) String() string
- type Stat
- func (*Stat) Descriptor() ([]byte, []int)deprecated
- func (x *Stat) GetAid() int64
- func (x *Stat) GetCoin() int32
- func (x *Stat) GetDanmaku() int32
- func (x *Stat) GetDislike() int32
- func (x *Stat) GetFav() int32
- func (x *Stat) GetHisRank() int32
- func (x *Stat) GetLike() int32
- func (x *Stat) GetNowRank() int32
- func (x *Stat) GetReply() int32
- func (x *Stat) GetShare() int32
- func (x *Stat) GetView() int32
- func (*Stat) ProtoMessage()
- func (x *Stat) ProtoReflect() protoreflect.Message
- func (x *Stat) Reset()
- func (x *Stat) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_archive_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Arc ¶
type Arc struct {
// 稿件avid
Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
// 稿件分P数
Videos int64 `protobuf:"varint,2,opt,name=videos,proto3" json:"videos,omitempty"`
// 分区id
TypeId int32 `protobuf:"varint,3,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`
// 二级分区名
TypeName string `protobuf:"bytes,4,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
// 稿件类型
// 1:原创 2:转载
Copyright int32 `protobuf:"varint,5,opt,name=copyright,proto3" json:"copyright,omitempty"`
// 稿件封面url
Pic string `protobuf:"bytes,6,opt,name=pic,proto3" json:"pic,omitempty"`
// 稿件标题
Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`
// 稿件发布时间
Pubdate int64 `protobuf:"varint,8,opt,name=pubdate,proto3" json:"pubdate,omitempty"`
// 用户投稿时间
Ctime int64 `protobuf:"varint,9,opt,name=ctime,proto3" json:"ctime,omitempty"`
// 稿件简介
Desc string `protobuf:"bytes,10,opt,name=desc,proto3" json:"desc,omitempty"`
// 稿件状态
State int32 `protobuf:"varint,11,opt,name=state,proto3" json:"state,omitempty"`
// 访问属性
// 0:全部可见 10000:登录可见
Access int32 `protobuf:"varint,12,opt,name=access,proto3" json:"access,omitempty"`
// 属性位配置(现在无了)
Attribute int32 `protobuf:"varint,13,opt,name=attribute,proto3" json:"attribute,omitempty"`
// 空
Tag string `protobuf:"bytes,14,opt,name=tag,proto3" json:"tag,omitempty"`
// 空
Tags []string `protobuf:"bytes,15,rep,name=tags,proto3" json:"tags,omitempty"`
// 稿件总时长(单位为秒)
Duration int64 `protobuf:"varint,16,opt,name=duration,proto3" json:"duration,omitempty"`
// 参与的活动id
MissionId int64 `protobuf:"varint,17,opt,name=mission_id,json=missionId,proto3" json:"mission_id,omitempty"`
// 绑定的商单id
OrderId int64 `protobuf:"varint,18,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
// PGC稿件强制重定向url(如番剧、影视)
RedirectUrl string `protobuf:"bytes,19,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"`
// 空
Forward int64 `protobuf:"varint,20,opt,name=forward,proto3" json:"forward,omitempty"`
// 控制标志
Rights *Rights `protobuf:"bytes,21,opt,name=rights,proto3" json:"rights,omitempty"`
// UP主信息
Author *Author `protobuf:"bytes,22,opt,name=author,proto3" json:"author,omitempty"`
// 状态数
Stat *Stat `protobuf:"bytes,23,opt,name=stat,proto3" json:"stat,omitempty"`
// 空
ReportResult string `protobuf:"bytes,24,opt,name=report_result,json=reportResult,proto3" json:"report_result,omitempty"`
// 投稿时发送的动态内容
Dynamic string `protobuf:"bytes,25,opt,name=dynamic,proto3" json:"dynamic,omitempty"`
// 稿件1P cid
FirstCid int64 `protobuf:"varint,26,opt,name=first_cid,json=firstCid,proto3" json:"first_cid,omitempty"`
// 稿件1P 分辨率
Dimension *Dimension `protobuf:"bytes,27,opt,name=dimension,proto3" json:"dimension,omitempty"`
// 合作组成员列表
StaffInfo []*StaffInfo `protobuf:"bytes,28,rep,name=staff_info,json=staffInfo,proto3" json:"staff_info,omitempty"`
// UGC合集id
SeasonId int64 `protobuf:"varint,29,opt,name=season_id,json=seasonId,proto3" json:"season_id,omitempty"`
// 新版属性位配置(也没用)
AttributeV2 int64 `protobuf:"varint,30,opt,name=attribute_v2,json=attributeV2,proto3" json:"attribute_v2,omitempty"`
// contains filtered or unexported fields
}
稿件基本信息
func (*Arc) Descriptor
deprecated
func (*Arc) GetAttribute ¶
func (*Arc) GetAttributeV2 ¶
func (*Arc) GetCopyright ¶
func (*Arc) GetDimension ¶
func (*Arc) GetDuration ¶
func (*Arc) GetDynamic ¶
func (*Arc) GetFirstCid ¶
func (*Arc) GetForward ¶
func (*Arc) GetMissionId ¶
func (*Arc) GetOrderId ¶
func (*Arc) GetPubdate ¶
func (*Arc) GetRedirectUrl ¶
func (*Arc) GetReportResult ¶
func (*Arc) GetSeasonId ¶
func (*Arc) GetStaffInfo ¶
func (*Arc) GetTypeName ¶
func (*Arc) ProtoMessage ¶
func (*Arc) ProtoMessage()
func (*Arc) ProtoReflect ¶
func (x *Arc) ProtoReflect() protoreflect.Message
type Author ¶
type Author struct {
// UP主mid
Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
// UP主昵称
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// UP主头像url
Face string `protobuf:"bytes,3,opt,name=face,proto3" json:"face,omitempty"`
// contains filtered or unexported fields
}
UP主信息
func (*Author) Descriptor
deprecated
func (*Author) ProtoMessage ¶
func (*Author) ProtoMessage()
func (*Author) ProtoReflect ¶
func (x *Author) ProtoReflect() protoreflect.Message
type Dimension ¶
type Dimension struct {
// 宽度
Width int64 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
// 高度
Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
// 方向
// 0:横屏 1:竖屏
Rotate int64 `protobuf:"varint,3,opt,name=rotate,proto3" json:"rotate,omitempty"`
// contains filtered or unexported fields
}
分辨率
func (*Dimension) Descriptor
deprecated
func (*Dimension) ProtoMessage ¶
func (*Dimension) ProtoMessage()
func (*Dimension) ProtoReflect ¶
func (x *Dimension) ProtoReflect() protoreflect.Message
type Page ¶
type Page struct {
// 视频cid
Cid int64 `protobuf:"varint,1,opt,name=cid,proto3" json:"cid,omitempty"`
// 分P序号
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
// 源类型
// vupload:B站 qq:腾讯 hunan:芒果
From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
// 分P标题
Part string `protobuf:"bytes,4,opt,name=part,proto3" json:"part,omitempty"`
// 分P时长(单位为秒)
Duration int64 `protobuf:"varint,5,opt,name=duration,proto3" json:"duration,omitempty"`
// 外链vid
Vid string `protobuf:"bytes,6,opt,name=vid,proto3" json:"vid,omitempty"`
// 分P简介
Desc string `protobuf:"bytes,7,opt,name=desc,proto3" json:"desc,omitempty"`
// 外链url
WebLink string `protobuf:"bytes,8,opt,name=webLink,proto3" json:"webLink,omitempty"`
// 分P分辨率
Dimension *Dimension `protobuf:"bytes,9,opt,name=dimension,proto3" json:"dimension,omitempty"`
// contains filtered or unexported fields
}
分P信息
func (*Page) Descriptor
deprecated
func (*Page) GetDimension ¶
func (*Page) GetDuration ¶
func (*Page) GetWebLink ¶
func (*Page) ProtoMessage ¶
func (*Page) ProtoMessage()
func (*Page) ProtoReflect ¶
func (x *Page) ProtoReflect() protoreflect.Message
type Rights ¶
type Rights struct {
// 老版是否付费
Bp int32 `protobuf:"varint,1,opt,name=bp,proto3" json:"bp,omitempty"`
// 允许充电
Elec int32 `protobuf:"varint,2,opt,name=elec,proto3" json:"elec,omitempty"`
// 允许下载
Download int32 `protobuf:"varint,3,opt,name=download,proto3" json:"download,omitempty"`
// 是否电影
Movie int32 `protobuf:"varint,4,opt,name=movie,proto3" json:"movie,omitempty"`
// PGC稿件需要付费
Pay int32 `protobuf:"varint,5,opt,name=pay,proto3" json:"pay,omitempty"`
// 是否高码率
Hd5 int32 `protobuf:"varint,6,opt,name=hd5,proto3" json:"hd5,omitempty"`
// 是否禁止转载标志
NoReprint int32 `protobuf:"varint,7,opt,name=no_reprint,json=noReprint,proto3" json:"no_reprint,omitempty"`
// 是否允许自动播放
Autoplay int32 `protobuf:"varint,8,opt,name=autoplay,proto3" json:"autoplay,omitempty"`
// UGC稿件需要付费
UgcPay int32 `protobuf:"varint,9,opt,name=ugc_pay,json=ugcPay,proto3" json:"ugc_pay,omitempty"`
// 是否联合投稿
IsCooperation int32 `protobuf:"varint,10,opt,name=is_cooperation,json=isCooperation,proto3" json:"is_cooperation,omitempty"`
// 是否UGC付费预览
UgcPayPreview int32 `protobuf:"varint,11,opt,name=ugc_pay_preview,json=ugcPayPreview,proto3" json:"ugc_pay_preview,omitempty"`
// 是否禁止后台播放
NoBackground int32 `protobuf:"varint,12,opt,name=no_background,json=noBackground,proto3" json:"no_background,omitempty"`
// contains filtered or unexported fields
}
稿件控制标志
func (*Rights) Descriptor
deprecated
func (*Rights) GetAutoplay ¶
func (*Rights) GetDownload ¶
func (*Rights) GetIsCooperation ¶
func (*Rights) GetNoBackground ¶
func (*Rights) GetNoReprint ¶
func (*Rights) GetUgcPayPreview ¶
func (*Rights) ProtoMessage ¶
func (*Rights) ProtoMessage()
func (*Rights) ProtoReflect ¶
func (x *Rights) ProtoReflect() protoreflect.Message
type StaffInfo ¶
type StaffInfo struct {
// 成员mid
Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
// 成员角色
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// 属性位
// 0:普通 1:赞助商金色标志
Attribute int64 `protobuf:"varint,3,opt,name=attribute,proto3" json:"attribute,omitempty"`
// contains filtered or unexported fields
}
合作成员信息
func (*StaffInfo) Descriptor
deprecated
func (*StaffInfo) GetAttribute ¶
func (*StaffInfo) ProtoMessage ¶
func (*StaffInfo) ProtoMessage()
func (*StaffInfo) ProtoReflect ¶
func (x *StaffInfo) ProtoReflect() protoreflect.Message
type Stat ¶
type Stat struct {
// 稿件avid
Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
// 播放数
View int32 `protobuf:"varint,2,opt,name=view,proto3" json:"view,omitempty"`
// 弹幕数
Danmaku int32 `protobuf:"varint,3,opt,name=danmaku,proto3" json:"danmaku,omitempty"`
// 评论数
Reply int32 `protobuf:"varint,4,opt,name=reply,proto3" json:"reply,omitempty"`
// 收藏数
Fav int32 `protobuf:"varint,5,opt,name=fav,proto3" json:"fav,omitempty"`
// 投币数
Coin int32 `protobuf:"varint,6,opt,name=coin,proto3" json:"coin,omitempty"`
Share int32 `protobuf:"varint,7,opt,name=share,proto3" json:"share,omitempty"`
// 当前排名
NowRank int32 `protobuf:"varint,8,opt,name=now_rank,json=nowRank,proto3" json:"now_rank,omitempty"`
// 历史最高排名
HisRank int32 `protobuf:"varint,9,opt,name=his_rank,json=hisRank,proto3" json:"his_rank,omitempty"`
// 点赞数
Like int32 `protobuf:"varint,10,opt,name=like,proto3" json:"like,omitempty"`
// 点踩数(前端不可见故恒为0)
Dislike int32 `protobuf:"varint,11,opt,name=dislike,proto3" json:"dislike,omitempty"`
// contains filtered or unexported fields
}
状态数
func (*Stat) Descriptor
deprecated
func (*Stat) GetDanmaku ¶
func (*Stat) GetDislike ¶
func (*Stat) GetHisRank ¶
func (*Stat) GetNowRank ¶
func (*Stat) ProtoMessage ¶
func (*Stat) ProtoMessage()
func (*Stat) ProtoReflect ¶
func (x *Stat) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.