Rename message

This commit is contained in:
Changhua 2023-02-20 01:10:40 +08:00
parent 12741ac841
commit 8c5a0bfcfb
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ service Wcf {
rpc RpcEnableRecvMsg(Empty) returns (stream WxMsg) {}
rpc RpcDisableRecvMsg(Empty) returns (Response) {}
rpc RpcSendTextMsg(TextMsg) returns (Response) {}
rpc RpcSendImageMsg(ImageMsg) returns (Response) {}
rpc RpcSendPathMsg(PathMsg) returns (Response) {}
rpc RpcGetMsgTypes(Empty) returns (MsgTypes) {}
rpc RpcGetContacts(Empty) returns (Contacts) {}
rpc RpcGetDbNames(Empty) returns (DbNames) {}
@ -44,7 +44,7 @@ message Request
Empty empty = 2;
string str = 3;
TextMsg txt = 4;
ImageMsg img = 5;
PathMsg file = 5;
DbQuery query = 6;
Verification v = 7;
}
@ -87,7 +87,7 @@ message TextMsg
string aters = 3; // @
}
message ImageMsg
message PathMsg
{
string path = 1; //
string receiver = 2; //

View File

@ -395,7 +395,7 @@ static bool dispatcher(uint8_t *in, size_t in_len, uint8_t *out, size_t *out_len
}
case Functions_FUNC_SEND_IMG: {
LOG_INFO("[Functions_FUNC_SEND_IMG]");
ret = func_send_img(req.msg.img.path, req.msg.txt.receiver, out, out_len);
ret = func_send_img(req.msg.file.path, req.msg.file.receiver, out, out_len);
break;
}
case Functions_FUNC_ENABLE_RECV_TXT: {