Merge branch 'errcode' of github.com:OpenIMSDK/Open-IM-Server into errcode

# Conflicts:
#	pkg/common/config/config.go
#	pkg/discoveryregistry/discovery_register.go
This commit is contained in:
wangchuxiao 2023-02-28 15:47:42 +08:00
parent 2edb3cfd8c
commit ab6fa41438
3 changed files with 15 additions and 11 deletions

View File

@ -1,17 +1,19 @@
syntax = "proto3";
import "Open-IM-Server/pkg/proto/sdkws/ws.proto";
option go_package = "OpenIM/pkg/proto/relay;pbRelay";
package relay;
option go_package = "OpenIM/pkg/proto/msggateway;pbMsggateway";
package msggateway;
message OnlinePushMsgReq {
string OperationID = 1;
sdkws.MsgData msgData = 2;
string pushToUserID = 3;
}
message OnlinePushMsgResp{
repeated SingleMsgToUserPlatform resp = 1;
repeated SingleMsgToUserPlatform resp = 1;
}
message SingelMsgToUserResultList{
message SingleMsgToUserResultList{
string userID =1;
repeated SingleMsgToUserPlatform resp = 2;
bool onlinePush = 3;
@ -22,8 +24,9 @@ message OnlineBatchPushOneMsgReq{
sdkws.MsgData msgData = 2;
repeated string pushToUserIDList = 3;
}
message OnlineBatchPushOneMsgResp{
repeated SingelMsgToUserResultList singlePushResult= 1;
repeated SingleMsgToUserResultList singlePushResult= 1;
}
//message SendMsgByWSReq{
// string SendID = 1;
@ -47,6 +50,7 @@ message GetUsersOnlineStatusReq{
string operationID = 2;
string opUserID = 3;
}
message GetUsersOnlineStatusResp{
int32 errCode = 1;
string errMsg = 2;
@ -67,16 +71,16 @@ message GetUsersOnlineStatusResp{
string userID = 1;
string status = 2;
repeated SuccessDetail detailPlatformStatus = 3;
}
}
message KickUserOfflineReq{
string operationID = 1;
int32 platformID = 2;
repeated string kickUserIDList = 3;
}
message KickUserOfflineResp{
message KickUserOfflineResp{
}

View File

@ -7,7 +7,7 @@ all_proto=(
rtc/rtc.proto
msg/msg.proto
push/push.proto
relay/relay.proto
msggateway/msg_gateway.proto
sdkws/ws.proto
conversation/conversation.proto
file/file.proto

View File

@ -1,6 +1,6 @@
syntax = "proto3";
option go_package = "OpenIM/pkg/proto/file;file";
package file;
option go_package = "OpenIM/pkg/proto/third;third";
package third;
message ApplySpaceReq {
@ -26,7 +26,7 @@ message ConfirmSpaceResp {
string confirmID = 1;
}
service file {
service third {
rpc ApplySpaceReq(ApplySpaceReq) returns(ApplySpaceResp);
}