Add extra data

This commit is contained in:
Changhua
2023-04-10 23:11:54 +08:00
parent 8e00350cc4
commit 9172bcc621
6 changed files with 6 additions and 21 deletions
+1 -1
View File
@@ -43,5 +43,5 @@ typedef struct {
string sender;
string roomid;
string content;
string extra_data;
string extra;
} WxMsg_t;
+1 -18
View File
@@ -3,23 +3,6 @@ syntax = "proto3";
package wcf;
option java_package = "com.iamteer";
/*
service Wcf {
rpc RpcIsLogin(Empty) returns (Response) {}
rpc RpcGetSelfWxid(Empty) returns (String) {}
rpc RpcEnableRecvMsg(Empty) returns (stream WxMsg) {}
rpc RpcDisableRecvMsg(Empty) returns (Response) {}
rpc RpcSendTextMsg(TextMsg) returns (Response) {}
rpc RpcSendPathMsg(PathMsg) returns (Response) {}
rpc RpcGetMsgTypes(Empty) returns (MsgTypes) {}
rpc RpcGetContacts(Empty) returns (Contacts) {}
rpc RpcGetDbNames(Empty) returns (DbNames) {}
rpc RpcGetDbTables(String) returns (DbTables) {}
rpc RpcExecDbQuery(DbQuery) returns (DbRows) {}
rpc RpcAcceptNewFriend(Verification) returns (Response) {}
}
*/
enum Functions {
FUNC_RESERVED = 0x00;
FUNC_IS_LOGIN = 0x01;
@@ -84,7 +67,7 @@ message WxMsg
string sender = 6; // 消息发送者
string roomid = 7; // 群 id(如果是群消息的话)
string content = 8; // 消息内容
string extra_data = 9; // 附加内容
string extra = 9; // 附加内容
}
message TextMsg