update proto

This commit is contained in:
away
2021-06-28 15:33:26 +08:00
parent 1e4a1dffdd
commit 3f9c37043c
11 changed files with 3004 additions and 954 deletions
+2267 -607
View File
File diff suppressed because it is too large Load Diff
+232 -66
View File
@@ -8,9 +8,18 @@ message CommonResp{
}
message CreateGroupReq{
repeated string userIDList = 1;
string token = 2;
string OperationID = 3;
repeated GroupAddMemberInfo memberList = 1;
string groupName = 2;
string introduction = 3;
string notification = 4;
string faceUrl = 5;
string token = 6;
string operationID = 7;
}
message GroupAddMemberInfo{
string uid = 1;
int32 setRole = 2;
}
message CreateGroupResp{
int32 ErrorCode = 1;
@@ -18,61 +27,102 @@ message CreateGroupResp{
string groupID = 3;
}
message GetGroupListReq{
string token = 1;
string OperationID = 2;
}
message GetGroupListResp{
int32 ErrorCode = 1;
string ErrorMsg = 2;
repeated string groupList = 3;
}
message GetGroupInfoReq{
string groupID = 1;
string OperationID = 2;
string token = 3;
}
message GetGroupInfoResp{
int32 ErrorCode = 1;
string ErrorMsg = 2;
string groupID = 3;
string groupName = 4;
string groupHeadURL = 5;
string bulletin = 6;
repeated MemberList groupMemberList = 7;
}
message MemberList{
string userID = 1;
string nickName = 2;
int32 isAdmin = 3;
}
message DeleteGroupMemberReq{
string groupID = 1;
message GetGroupsInfoReq{
repeated string groupIDList = 1;
string token = 2;
string OperationID = 3;
repeated string userIdList = 4;
string operationID = 3;
}
message GetGroupsInfoResp{
int32 ErrorCode = 1;
string ErrorMsg = 2;
repeated GroupInfo data = 3;
}
message SetGroupInfoReq{
string groupID = 1;
string groupName = 2;
string notification = 3;
string introduction = 4;
string faceUrl = 5;
string token = 6;
string operationID = 7;
}
message SetGroupNameReq{
message GetGroupApplicationListReq {
string UID = 1;
string OperationID = 2;
}
message GetGroupApplicationList_Data_User {
string GroupID = 1;
string FromUserID = 2;
string FromUserNickName = 3;
string FromUserFaceUrl = 4;
string ToUserID = 5;
int64 AddTime = 6;
string RequestMsg = 7;
string HandledMsg = 8;
int32 Type = 9;
int32 HandleStatus = 10;
int32 HandleResult = 11;
}
message GetGroupApplicationListData {
int32 Count = 1;
repeated GetGroupApplicationList_Data_User User = 2;
}
message GetGroupApplicationListResp {
int32 ErrCode = 1;
string ErrMsg = 2;
GetGroupApplicationListData Data = 3;
}
message TransferGroupOwnerReq {
string GroupID = 1;
string OldOwner = 2;
string NewOwner = 3;
string OperationID = 4;
}
message TransferGroupOwnerResp{
int32 ErrCode = 1;
string ErrMsg = 2;
}
message JoinGroupReq{
string groupID = 1;
string name = 2;
string message = 2;
string token = 3;
string OperationID = 4;
}
message SetGroupBulletinReq{
string groupID = 1;
string bulletin = 2;
string OperationID = 3;
string token = 4;
message GroupApplicationResponseReq{
string OperationID = 1;
string OwnerID = 2;
string GroupID = 3;
string FromUserID = 4;
string FromUserNickName = 5;
string FromUserFaceUrl = 6;
string ToUserID = 7;
string ToUserNickName = 8;
string ToUserFaceUrl = 9;
int64 AddTime = 10;
string RequestMsg = 11;
string HandledMsg = 12;
int32 Type = 13;
int32 HandleStatus = 14;
int32 HandleResult = 15;
}
message GroupApplicationResponseResp{
int32 ErrCode = 1;
string ErrMsg = 2;
}
message SetOwnerGroupNickNameReq{
string groupID = 1;
string nickName = 2;
@@ -81,31 +131,152 @@ message SetOwnerGroupNickNameReq{
}
message SetGroupHeadImageReq{
message QuitGroupReq{
string groupID = 1;
string headUrl = 2;
string OperationID = 3;
string token = 4;
string operationID = 2;
string token = 3;
}
message MemberExitGroupReq{
message GroupApplicationUserInfo{
string groupID = 1;
string OperationID = 2;
string uid = 2;
string name = 3;
string icon = 4;
string reqMsg = 5;
int64 applicationTime = 6;
int32 flag = 7;
string operatorID = 8;
string handledMsg = 9;
}
message GroupMemberFullInfo {
string userId = 1;
int32 role = 2;
uint64 joinTime = 3;
string nickName = 4;
string faceUrl = 5;
}
message GetGroupMemberListReq {
string groupID = 1;
string token = 2;
string operationID = 3;
int32 filter = 4;
int32 nextSeq = 5;
}
message GetGroupMemberListResp {
int32 errorCode = 1;
string errorMsg = 2;
repeated GroupMemberFullInfo memberList = 3;
int32 nextSeq = 4;
}
message GetGroupMembersInfoReq {
string groupID = 1;
repeated string memberList = 2;
string token = 3;
string operationID = 4;
}
message GetGroupMembersInfoResp {
int32 errorCode = 1;
string errorMsg = 2;
repeated GroupMemberFullInfo memberList = 3;
}
message KickGroupMemberReq {
string groupID = 1;
repeated string uidList = 2;
string reason = 3;
string token = 4;
string operationID = 5;
}
message Id2Result {
string uId = 1;
int32 result = 2; //0 ok; -1 error
}
message KickGroupMemberResp {
int32 errorCode = 1;
string errorMsg = 2;
repeated Id2Result id2result = 3;
}
message getJoinedGroupListReq {
string token = 1;
string operationID = 2;
}
message GroupInfo {
string groupId = 1;
string groupName = 2;
string notification = 3;
string introduction = 4;
string faceUrl = 5;
uint64 createTime = 6;
string ownerId = 7;
uint32 memberCount = 8;
}
message getJoinedGroupListResp{
int32 errorCode = 1;
string errorMsg = 2;
repeated GroupInfo groupList = 3;
}
message inviteUserToGroupReq {
string token = 1;
string operationID = 2;
string groupID = 3;
string reason = 4;
repeated string uidList = 5;
}
message inviteUserToGroupResp {
int32 errorCode = 1;
string errorMsg = 2;
repeated Id2Result id2result = 3; // 0 ok, -1 error
}
message GetGroupAllMemberReq {
string groupID = 1;
string token = 2;
string operationID = 3;
}
message GetGroupAllMemberResp {
int32 errorCode = 1;
string errorMsg = 2;
repeated GroupMemberFullInfo memberList = 3;
}
service group{
rpc createGroup(CreateGroupReq) returns(CreateGroupResp);
rpc getGroupList(GetGroupListReq) returns(GetGroupListResp);
rpc getGroupInfo(GetGroupInfoReq)returns(GetGroupInfoResp);
rpc deleteGroupMember(DeleteGroupMemberReq) returns(CommonResp);
rpc setGroupName(SetGroupNameReq) returns(CommonResp);
rpc setGroupBulletin(SetGroupBulletinReq) returns(CommonResp);
rpc setOwnerGroupNickName(SetOwnerGroupNickNameReq) returns(CommonResp);
rpc setGroupHeadImage(SetGroupHeadImageReq) returns(CommonResp);
rpc memberExitGroup(MemberExitGroupReq) returns(CommonResp);
rpc joinGroup(JoinGroupReq) returns(CommonResp);
rpc quitGroup(QuitGroupReq) returns(CommonResp);
rpc getGroupsInfo(GetGroupsInfoReq) returns(GetGroupsInfoResp);
rpc setGroupInfo(SetGroupInfoReq) returns(CommonResp);
rpc getGroupApplicationList(GetGroupApplicationListReq) returns(GetGroupApplicationListResp);
rpc transferGroupOwner(TransferGroupOwnerReq) returns(TransferGroupOwnerResp);
rpc groupApplicationResponse(GroupApplicationResponseReq) returns(GroupApplicationResponseResp);
// rpc setOwnerGroupNickName(SetOwnerGroupNickNameReq) returns(CommonResp);
rpc getGroupMemberList(GetGroupMemberListReq) returns(GetGroupMemberListResp);
rpc getGroupMembersInfo(GetGroupMembersInfoReq) returns(GetGroupMembersInfoResp);
rpc kickGroupMember(KickGroupMemberReq) returns (KickGroupMemberResp);
rpc getJoinedGroupList(getJoinedGroupListReq) returns (getJoinedGroupListResp);
rpc inviteUserToGroup(inviteUserToGroupReq) returns (inviteUserToGroupResp);
rpc getGroupAllMember(GetGroupAllMemberReq) returns(GetGroupAllMemberResp);
}
@@ -114,8 +285,3 @@ service group{