更新大量【proto定义】并勘误

This commit is contained in:
社会易姐QwQ
2021-07-06 21:28:36 +08:00
parent 129b9bc88b
commit ce8d00fcd0
36 changed files with 2951 additions and 2099 deletions

View File

@@ -0,0 +1,63 @@
syntax = "proto3";
package bilibili.broadcast.message.main;
// 实时弹幕事件
message DanmukuEvent {
// 弹幕列表
repeated DanmakuElem elems = 1;
}
// 弹幕条目
message DanmakuElem {
// 弹幕dmid
int64 id = 1;
// 弹幕出现位置(单位为ms)
int32 progress = 2;
// 弹幕类型
int32 mode = 3;
// 弹幕字号
int32 fontsize = 4;
// 弹幕颜色
uint32 color = 5;
// 发送着mid hash
string mid_hash = 6;
// 弹幕正文
string content = 7;
// 发送时间
int64 ctime = 8;
// 弹幕动作
string action = 9;
// 弹幕池
int32 pool = 10;
// 弹幕id str
string id_str = 11;
}
// 互动弹幕
message CommandDm {
// 弹幕id
int64 id = 1;
// 对象视频cid
int64 oid = 2;
// 发送者mid
int64 mid = 3;
//
int32 type = 4;
// 互动弹幕指令
string command = 5;
// 互动弹幕正文
string content = 6;
// 弹幕状态
int32 state = 7;
// 出现时间
int32 progress = 8;
// 创建时间
string ctime = 9;
// 发布时间
string mtime = 10;
// 扩展json数据
string extra = 11;
// 弹幕id str类型
string idStr = 12;
}

View File

@@ -0,0 +1,36 @@
syntax = "proto3";
package bilibili.broadcast.message.main;
import "google/protobuf/empty.proto";
//
service NativePage {
//
rpc WatchNotify(google.protobuf.Empty) returns (stream NativePageEvent);
}
//
message NativePageEvent {
// Native页ID
int64 PageID = 1;
//
repeated EventItem Items = 2;
}
//
message EventItem {
// 组件标识
int64 ItemID = 1;
// 组件类型
string Type = 2;
// 进度条数值
int64 Num = 3;
// 进度条展示数值
string DisplayNum = 4;
// h5的组件标识
string WebKey = 5;
// 活动统计维度
// 0:用户维度 1:规则维度
int64 dimension = 6;
}

View File

@@ -0,0 +1,61 @@
syntax = "proto3";
package bilibili.broadcast.message.main;
import "google/protobuf/empty.proto";
//
service Resource {
//
rpc TopActivity(google.protobuf.Empty) returns (stream TopActivityReply);
}
//
message TopActivityReply {
// 当前生效的资源
TopOnline online = 1;
// 对online内容进行hash和上次结果一样则不重新加载
string hash = 2;
}
// 当前生效的资源
message TopOnline {
// 活动类型
// 1:七日活动 2:后台配置
int32 type = 1;
// 图标
string icon = 2;
// 跳转链接
string uri = 3;
// 资源状态标识(后台配置)
string unique_id = 4;
// 动画资源
Animate animate = 5;
// 红点
RedDot red_dot = 6;
// 活动名称
string name = 7;
// 轮询间隔 单位秒
int64 interval = 8;
}
// 动画资源
message Animate {
// 动效结束展示icon
string icon = 1;
// 7日活动动画
string json = 2;
// s10活动svg动画
string svg = 3;
// 循环次数(默认0不返回 表示无限循环)
int32 loop = 4;
}
// 红点
message RedDot {
// 红点类型
// 1:纯红点 2:数字红点
int32 type = 1;
// 如果是数字红点 显示的数字
int32 number = 2;
}