Skip to content

Commit e8459e2

Browse files
authored
feat: enhance Elem message with additional fields and define Face, TransElem, and MarketFace messages (#10)
1 parent bf3aca2 commit e8459e2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

proto/message/v2/message.proto

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ package message.v2;
44

55
message Elem {
66
optional Text text = 1;
7+
optional Face face = 2;
78
optional NotOnlineImage not_online_image = 4;
9+
optional TransElem trans_elem = 5;
10+
optional MarketFace market_face = 6;
811
optional CustomFace custom_face = 8;
912
optional RichMsg rich_msg = 12;
1013
optional VideoFile video_file = 19;
@@ -22,6 +25,12 @@ message Text {
2225
optional bytes pb_reserve = 12;
2326
}
2427

28+
message Face {
29+
optional int32 index = 1;
30+
optional bytes old = 2;
31+
optional bytes buf = 11;
32+
}
33+
2534
message NotOnlineImage {
2635
optional bytes file_path = 1;
2736
optional uint32 file_len = 2;
@@ -54,6 +63,27 @@ message NotOnlineImage {
5463
optional bytes pb_reserve = 29;
5564
}
5665

66+
message TransElem {
67+
optional int32 elem_type = 1;
68+
optional bytes elem_value = 2;
69+
}
70+
71+
message MarketFace {
72+
optional bytes face_name = 1;
73+
optional int32 item_type = 2;
74+
optional int32 face_info = 3;
75+
optional bytes face_id = 4;
76+
optional int32 tab_id = 5;
77+
optional int32 sub_type = 6;
78+
optional bytes key = 7;
79+
optional bytes param = 8;
80+
optional int32 media_type = 9;
81+
optional int32 image_width = 10;
82+
optional int32 image_height = 11;
83+
optional bytes mobileparam = 12;
84+
optional bytes pb_reserve = 13;
85+
}
86+
5787
message CustomFace {
5888
optional bytes guid = 1;
5989
optional string file_path = 2;

0 commit comments

Comments
 (0)