Quellcode durchsuchen

add 群组是否可以加好友

master
DengBiao vor 9 Monaten
Ursprung
Commit
caac5e26b0
2 geänderte Dateien mit 40 neuen und 4 gelöschten Zeilen
  1. +19
    -4
      gim/logic.ext.proto
  2. +21
    -0
      gim/pb/go.sum

+ 19
- 4
gim/logic.ext.proto Datei anzeigen

@@ -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;
}
}

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:否)
}


+ 21
- 0
gim/pb/go.sum Datei anzeigen

@@ -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=

Laden…
Abbrechen
Speichern