2021-05-26 19:58:57 +08:00
|
|
|
syntax = "proto3";
|
2023-02-09 20:36:34 +08:00
|
|
|
import "Open-IM-Server/pkg/proto/sdkws/ws.proto";
|
2022-09-21 08:36:33 +08:00
|
|
|
option go_package = "Open_IM/pkg/proto/push;pbPush";
|
2021-05-26 19:58:57 +08:00
|
|
|
package push;
|
|
|
|
|
|
|
|
|
|
message PushMsgReq {
|
2021-12-22 10:47:07 +08:00
|
|
|
string operationID = 1;
|
2023-02-09 20:36:34 +08:00
|
|
|
sdkws.MsgData msgData = 2;
|
2022-02-08 16:49:45 +08:00
|
|
|
string pushToUserID = 3;
|
2021-05-26 19:58:57 +08:00
|
|
|
}
|
|
|
|
|
message PushMsgResp{
|
|
|
|
|
int32 ResultCode = 1;
|
|
|
|
|
}
|
2022-10-27 17:15:06 +08:00
|
|
|
message DelUserPushTokenReq{
|
|
|
|
|
string operationID = 1;
|
|
|
|
|
string userID =2;
|
|
|
|
|
int32 platformID = 3;
|
|
|
|
|
}
|
|
|
|
|
message DelUserPushTokenResp{
|
|
|
|
|
int32 errCode = 1;
|
|
|
|
|
string errMsg = 2;
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-26 19:58:57 +08:00
|
|
|
//message InternalPushMsgReq{
|
|
|
|
|
// int32 ReqIdentifier = 1;
|
|
|
|
|
// string Token = 2;
|
|
|
|
|
// string SendID = 3;
|
|
|
|
|
// string OperationID = 4;
|
|
|
|
|
// int32 MsgIncr = 5;
|
|
|
|
|
// int32 PlatformID = 6;
|
|
|
|
|
// int32 SessionType = 7;
|
|
|
|
|
// int32 MsgFrom = 8;
|
|
|
|
|
// int32 ContentType = 9;
|
|
|
|
|
// string RecvID = 10;
|
|
|
|
|
// repeated string ForceList = 11;
|
|
|
|
|
// string Content = 12;
|
|
|
|
|
// string Options = 13;
|
|
|
|
|
// string ClientMsgID = 14;
|
|
|
|
|
// string OffLineInfo = 15;
|
|
|
|
|
// string Ex = 16;
|
|
|
|
|
//
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
service PushMsgService {
|
|
|
|
|
rpc PushMsg(PushMsgReq) returns(PushMsgResp);
|
2022-10-27 17:15:06 +08:00
|
|
|
rpc DelUserPushToken(DelUserPushTokenReq) returns(DelUserPushTokenResp);
|
2021-05-26 19:58:57 +08:00
|
|
|
// rpc InternalPushMsg(InternalPushMsgReq)returns(PushMsgResp);
|
|
|
|
|
}
|
|
|
|
|
|