|
|
|
syntax = "proto3";
|
|
|
|
package open_im_sdk;//The package name to which the proto file belongs
|
|
|
|
option go_package = "./sdk_ws;open_im_sdk";//The generated go pb file is in the current directory, and the package name is open_im_sdk
|
|
|
|
|
|
|
|
|
|
|
|
message PullMessageBySeqListResp {
|
|
|
|
int64 MaxSeq = 1;
|
|
|
|
int64 MinSeq = 2;
|
|
|
|
repeated GatherFormat SingleUserMsg = 3;
|
|
|
|
repeated GatherFormat GroupUserMsg = 4;
|
|
|
|
}
|
|
|
|
message PullMessageBySeqListReq{
|
|
|
|
repeated int64 seqList =1;
|
|
|
|
}
|
|
|
|
message GetMaxAndMinSeqReq {
|
|
|
|
}
|
|
|
|
message GetMaxAndMinSeqResp {
|
|
|
|
int64 maxSeq = 1;
|
|
|
|
int64 minSeq = 2;
|
|
|
|
}
|
|
|
|
message GatherFormat{
|
|
|
|
// @inject_tag: json:"id"
|
|
|
|
string ID = 1;
|
|
|
|
// @inject_tag: json:"list"
|
|
|
|
repeated MsgFormat List = 2;//detail msg
|
|
|
|
}
|
|
|
|
message MsgFormat{
|
|
|
|
// @inject_tag: json:"sendID"
|
|
|
|
string SendID = 1;
|
|
|
|
// @inject_tag: json:"recvID"
|
|
|
|
string RecvID = 2;
|
|
|
|
// @inject_tag: json:"msgFrom"
|
|
|
|
int32 MsgFrom = 3;
|
|
|
|
// @inject_tag: json:"contentType"
|
|
|
|
int32 ContentType = 4;
|
|
|
|
// @inject_tag: json:"serverMsgID"
|
|
|
|
string ServerMsgID = 5;
|
|
|
|
// @inject_tag: json:"content"
|
|
|
|
string Content = 6;
|
|
|
|
// @inject_tag: json:"seq"
|
|
|
|
int64 Seq = 7;
|
|
|
|
// @inject_tag: json:"sendTime"
|
|
|
|
int64 SendTime = 8;
|
|
|
|
// @inject_tag: json:"senderPlatformID"
|
|
|
|
int32 SenderPlatformID = 9;
|
|
|
|
// @inject_tag: json:"senderNickName"
|
|
|
|
string SenderNickName = 10;
|
|
|
|
// @inject_tag: json:"senderFaceUrl"
|
|
|
|
string SenderFaceURL = 11;
|
|
|
|
// @inject_tag: json:"clientMsgID"
|
|
|
|
string ClientMsgID = 12;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UserSendMsgReq {
|
|
|
|
map<string,int32> Options= 1;
|
|
|
|
string SenderNickName = 2;
|
|
|
|
string SenderFaceURL = 3;
|
|
|
|
int32 PlatformID = 4;
|
|
|
|
int32 SessionType = 5;
|
|
|
|
int32 MsgFrom = 6;
|
|
|
|
int32 ContentType = 7;
|
|
|
|
string RecvID = 8;
|
|
|
|
repeated string ForceList = 9;
|
|
|
|
string Content = 10;
|
|
|
|
string ClientMsgID = 11;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UserSendMsgResp {
|
|
|
|
string ServerMsgID = 1;
|
|
|
|
string ClientMsgID = 2;
|
|
|
|
int64 sendTime = 3;
|
|
|
|
|
|
|
|
}
|
|
|
|
message MsgData {
|
|
|
|
string sendID = 1;
|
|
|
|
string recvID = 2;
|
|
|
|
string groupID = 3;
|
|
|
|
string clientMsgID =4;
|
|
|
|
string serverMsgID =5;
|
|
|
|
int32 senderPlatformID =6;
|
|
|
|
string senderNickName =7;
|
|
|
|
string senderFaceURL =8;
|
|
|
|
int32 sessionType = 9;
|
|
|
|
int32 msgFrom = 10;
|
|
|
|
int32 contentType = 11;
|
|
|
|
string content =12;
|
|
|
|
repeated string forceList = 13;
|
|
|
|
int64 seq =14;
|
|
|
|
int64 sendTime = 15;
|
|
|
|
int64 createTime = 16;
|
|
|
|
OfflinePushInfo offlinePushInfo =17;
|
|
|
|
}
|
|
|
|
|
|
|
|
message OfflinePushInfo{
|
|
|
|
string Title = 1;
|
|
|
|
string Desc = 2;
|
|
|
|
string Ext = 3;
|
|
|
|
string PushSound = 4;
|
|
|
|
bool ISBadgeCount = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
message GroupInfo{
|
|
|
|
string GroupID = 1;
|
|
|
|
string GroupName = 2;
|
|
|
|
string Notification = 3;
|
|
|
|
string Introduction = 4;
|
|
|
|
string FaceUrl = 5;
|
|
|
|
string OwnerID = 6;
|
|
|
|
int64 CreateTime = 7;
|
|
|
|
uint32 MemberCount = 8;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
message GroupMemberFullInfo{
|
|
|
|
string GroupID = 1 ;
|
|
|
|
string UserID = 2 ;
|
|
|
|
int32 Role = 3;
|
|
|
|
int64 JoinTime = 4;
|
|
|
|
string NickName = 5;
|
|
|
|
string FaceUrl =6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message FriendInfo{
|
|
|
|
string UserID = 1;
|
|
|
|
string Nickname = 2;
|
|
|
|
string FaceUrl = 3;
|
|
|
|
int32 Gender = 4;
|
|
|
|
string Mobile = 5;
|
|
|
|
string Birth = 6;
|
|
|
|
string Email = 7;
|
|
|
|
string Remark = 8;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UserInfo{
|
|
|
|
string UserID = 1;
|
|
|
|
string Nickname = 2;
|
|
|
|
string FaceUrl = 3;
|
|
|
|
int32 Gender = 4;
|
|
|
|
string Mobile = 5;
|
|
|
|
string Birth = 6;
|
|
|
|
string Email = 7;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UserPublicInfo{
|
|
|
|
string UserID = 1;
|
|
|
|
string Nickname = 2;
|
|
|
|
string FaceUrl = 3;
|
|
|
|
int32 Gender = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreateGroupTip{
|
|
|
|
GroupInfo group = 1;
|
|
|
|
UserInfo creator = 2;
|
|
|
|
repeated GroupMemberFullInfo memberList = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|