dek jinzhu

This commit is contained in:
wangchuxiao
2022-12-07 21:12:48 +08:00
parent f190611bcc
commit be01c4da0c
15 changed files with 126 additions and 43 deletions
+24
View File
@@ -1,5 +1,6 @@
syntax = "proto3";
import "Open-IM-Server/pkg/proto/sdk_ws/ws.proto";
import "Open-IM-Server/pkg/proto/sdk_ws/wrappers.proto";
option go_package = "Open_IM/pkg/proto/msg;msg";
package msg;
@@ -153,6 +154,26 @@ message GetWriteDiffMsgResp{
server_api_params.MsgData msgData = 3;
}
message ModifyMsgReq {
string operationID = 1;
string ID = 2;
int32 Index = 3;
int32 msgIndex = 4;
string opUserID = 5;
string userID = 6;
bool isFirstModify = 7;
string clientMsgID = 8;
google.protobuf.StringValue value = 9;
google.protobuf.StringValue ex = 10;
google.protobuf.StringValue attachedInfo = 11;
}
message ModifyMsgResp {
int32 errCode = 1;
string errMsg = 2;
int32 Index = 4;
int32 msgIndex = 3;
}
service msg {
rpc GetMaxAndMinSeq(server_api_params.GetMaxAndMinSeqReq) returns(server_api_params.GetMaxAndMinSeqResp);
@@ -166,4 +187,7 @@ service msg {
rpc GetSendMsgStatus(GetSendMsgStatusReq) returns(GetSendMsgStatusResp);
rpc GetSuperGroupMsg(GetSuperGroupMsgReq) returns(GetSuperGroupMsgResp);
rpc GetWriteDiffMsg(GetWriteDiffMsgReq) returns(GetWriteDiffMsgResp);
// modify msg
rpc ModifyMsg(ModifyMsgReq) returns(ModifyMsgResp);
}
+25 -1
View File
@@ -704,4 +704,28 @@ message SetAppBackgroundStatusReq {
message SetAppBackgroundStatusResp {
int32 errCode = 1;
string errMsg = 2;
}
}
message ExtendMsgSet {
string ID = 1;
repeated ExtendMsg extendMsgs = 2;
int32 latestUpdateTime = 3;
string attachedInfo = 4;
string ex = 5;
int32 extendMsgNum = 6;
int32 createTime = 7;
}
message ExtendMsg {
repeated ReactionExtendMsgSet content = 1;
string clientMsgID = 2;
int32 createTime = 3;
int32 latestUpdateTime = 4;
}
message ReactionExtendMsgSet {
string userKey = 1;
string value = 2;
int32 latestUpdateTime = 3;
}