From caac5e26b089108f7b38b5397295b677a5a5f8b8 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Thu, 21 Mar 2024 18:18:44 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E7=BE=A4=E7=BB=84=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E5=8A=A0=E5=A5=BD=E5=8F=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gim/logic.ext.proto | 23 +++++++++++++++++++---- gim/pb/go.sum | 21 +++++++++++++++++++++ 2 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 gim/pb/go.sum diff --git a/gim/logic.ext.proto b/gim/logic.ext.proto index 6c125e9..46fe5b5 100644 --- a/gim/logic.ext.proto +++ b/gim/logic.ext.proto @@ -53,6 +53,8 @@ service LogicExt { rpc SetGroupRemoveBannedMembers (SetGroupMemberRemoveBannedReq) returns (Empty); // 获取群组禁言成员 rpc GetGroupBannedMembers (GetGroupBannedMembersReq) returns (GetGroupBannedMembersResp); + // 设置是否加好友 + rpc SetGroupAddFriend (SetGroupAddFriendReq) returns (Empty); } message RegisterDeviceReq { @@ -193,9 +195,10 @@ message Group { string introduction = 4; // 简介 int32 user_mum = 5; // 用户数 int32 is_all_member_banned = 6; // 是否全员禁言(1:是 2:否) - string extra = 7; // 附加字段 - int64 create_time = 8; // 创建时间 - int64 update_time = 9; // 更新时间 + int32 is_all_add_friend = 7; // 是否允许加好友(1:是 2:否) + string extra = 8; // 附加字段 + int64 create_time = 9; // 创建时间 + int64 update_time = 10; // 更新时间 } message GetGroupsResp { @@ -274,6 +277,18 @@ message SetGroupMemberBannedResp { message GetGroupBannedMembersReq { int64 group_id = 1; } + message GetGroupBannedMembersResp { repeated GroupMember members = 1; -} \ No newline at end of file +} + +enum AllAddFriendType { + UNKNOWN_All_Add_Friend = 0; // 未知 + YES_All_Add_Friend = 1; // 是-允许加好友 + NOT_All_Add_Friend = 2; // 否-禁止加好友 +} +message SetGroupAddFriendReq { + int64 group_id = 1; // 群组id + AllAddFriendType is_all_add_friend = 2; // 是否允许加好友(1:是 2:否) +} + diff --git a/gim/pb/go.sum b/gim/pb/go.sum new file mode 100644 index 0000000..bc832df --- /dev/null +++ b/gim/pb/go.sum @@ -0,0 +1,21 @@ +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +golang.org/x/net v0.1.0 h1:hZ/3BUoy5aId7sCpA/Tc5lt8DkFgdVS2onTpJsZ/fl0= +golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= +golang.org/x/sys v0.1.0 h1:kunALQeHf1/185U1i0GOB/fy1IPRDDpuoOOqRReG57U= +golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/genproto v0.0.0-20221018160656-63c7b68cfc55 h1:U1u4KB2kx6KR/aJDjQ97hZ15wQs8ZPvDcGcRynBhkvg= +google.golang.org/genproto v0.0.0-20221018160656-63c7b68cfc55/go.mod h1:45EK0dUbEZ2NHjCeAd2LXmyjAgGUGrpGROgjhC3ADck= +google.golang.org/grpc v1.50.1 h1:DS/BukOZWp8s6p4Dt/tOaJaTQyPyOoCcrjroHuCeLzY= +google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=