Impl download attachments: image, file, video. #14 close #35

This commit is contained in:
Changhua
2023-11-21 20:55:54 +08:00
parent 38db02437c
commit 4c13d86d41
8 changed files with 250 additions and 1 deletions
+9
View File
@@ -23,6 +23,7 @@ enum Functions {
FUNC_ACCEPT_FRIEND = 0x51;
FUNC_RECV_TRANSFER = 0x52;
FUNC_REFRESH_PYQ = 0x53;
FUNC_DOWNLOAD_ATTACH = 0x54;
FUNC_DECRYPT_IMAGE = 0x60;
FUNC_ADD_ROOM_MEMBERS = 0x70;
FUNC_DEL_ROOM_MEMBERS = 0x71;
@@ -45,6 +46,7 @@ message Request
Transfer tf = 11;
uint64 ui64 = 12; // 64 位整数,通用
bool flag = 13;
AttachMsg att = 14;
}
}
@@ -176,3 +178,10 @@ message Transfer
string tfid = 2; // 转账id transferid
string taid = 3; // Transaction id
}
message AttachMsg
{
uint64 id = 1; // 消息 id
string thumb = 2; // 消息中的 thumb
string extra = 3; // 消息中的 extra
}