解析成功,待继续发掘有用数据

This commit is contained in:
2019-12-31 11:27:56 +08:00
parent a14d1361bb
commit 0e37230f69
8 changed files with 1302 additions and 91 deletions

35
Demo/XiguaCommon.proto Normal file
View File

@ -0,0 +1,35 @@
syntax = "proto2";
import "XiguaUser.proto";
import "XiguaGift.proto";
// 样式
message Style {
optional string color = 1;
optional int32 fontWeight = 4;
}
// 参数
message Params {
// 1 字符串
// 11 用户
// 12 礼物
required int32 type = 1;
optional Style style = 2;
optional string string = 11;
optional User user = 21;
optional Gift gift = 22;
}
// 自定义显示信息
message DisplayText {
// 参数
required string method = 1;
required string format = 2;
optional Style bgStyle = 3;
optional Params params = 4;
}
// 通用定义
message CommonInfo {
optional string method = 1;
optional int32 msg_id = 2;
optional int32 room_id = 3;
optional int32 create_time = 4;
optional DisplayText displayText = 8;
}