Add more fields in WxMsg
This commit is contained in:
@@ -38,14 +38,16 @@ typedef vector<DbRow_t> DbRows_t;
|
||||
typedef struct {
|
||||
bool is_self;
|
||||
bool is_group;
|
||||
int32_t type;
|
||||
string id;
|
||||
string xml;
|
||||
uint32_t type;
|
||||
uint32_t ts;
|
||||
uint64_t id;
|
||||
string sender;
|
||||
string roomid;
|
||||
string content;
|
||||
string sign;
|
||||
string thumb;
|
||||
string extra;
|
||||
string xml;
|
||||
} WxMsg_t;
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -42,6 +42,7 @@ message Request
|
||||
XmlMsg xml = 9;
|
||||
DecPath dec = 10;
|
||||
Transfer tf = 11;
|
||||
uint64 ui64 = 12; // 64 位整数,通用
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,14 +69,16 @@ message WxMsg
|
||||
{
|
||||
bool is_self = 1; // 是否自己发送的
|
||||
bool is_group = 2; // 是否群消息
|
||||
int32 type = 3; // 消息类型
|
||||
string id = 4; // 消息 id
|
||||
string xml = 5; // 消息 xml
|
||||
string sender = 6; // 消息发送者
|
||||
string roomid = 7; // 群 id(如果是群消息的话)
|
||||
string content = 8; // 消息内容
|
||||
string thumb = 9; // 缩略图
|
||||
string extra = 10; // 附加内容
|
||||
uint64 id = 3; // 消息 id
|
||||
uint32 type = 4; // 消息类型
|
||||
uint32 ts = 5; // 消息类型
|
||||
string roomid = 6; // 群 id(如果是群消息的话)
|
||||
string content = 7; // 消息内容
|
||||
string sender = 8; // 消息发送者
|
||||
string sign = 9; // Sign
|
||||
string thumb = 10; // 缩略图
|
||||
string extra = 11; // 附加内容
|
||||
string xml = 12; // 消息 xml
|
||||
}
|
||||
|
||||
message TextMsg
|
||||
|
||||
Reference in New Issue
Block a user