@@ -95,18 +95,6 @@ func (g *Group) DismissGroup(ctx context.Context, groupID string) error {
9595 return nil
9696}
9797
98- //func (g *Group) SetGroupApplyMemberFriend(ctx context.Context, groupID string, rule int32) error {
99- // return g.SetGroupInfo(ctx, &sdkws.GroupInfoForSet{GroupID: groupID, ApplyMemberFriend: wrapperspb.Int32(rule)})
100- //}
101- //
102- //func (g *Group) SetGroupLookMemberInfo(ctx context.Context, groupID string, rule int32) error {
103- // return g.SetGroupInfo(ctx, &sdkws.GroupInfoForSet{GroupID: groupID, LookMemberInfo: wrapperspb.Int32(rule)})
104- //}
105- //
106- //func (g *Group) SetGroupVerification(ctx context.Context, groupID string, verification int32) error {
107- // return g.SetGroupInfo(ctx, &sdkws.GroupInfoForSet{GroupID: groupID, NeedVerification: wrapperspb.Int32(verification)})
108- //}
109-
11098func (g * Group ) ChangeGroupMute (ctx context.Context , groupID string , isMute bool ) (err error ) {
11199 if isMute {
112100 err = g .muteGroup (ctx , groupID )
@@ -183,14 +171,6 @@ func (g *Group) SetGroupMemberInfo(ctx context.Context, groupMemberInfo *group.S
183171 return g .IncrSyncGroupAndMember (ctx , groupMemberInfo .GroupID )
184172}
185173
186- //func (g *Group) SetGroupMemberRoleLevel(ctx context.Context, groupID, userID string, roleLevel int) error {
187- // return g.SetGroupMemberInfo(ctx, &group.SetGroupMemberInfo{GroupID: groupID, UserID: userID, RoleLevel: wrapperspb.Int32(int32(roleLevel))})
188- //}
189- //
190- //func (g *Group) SetGroupMemberNickname(ctx context.Context, groupID, userID string, groupMemberNickname string) error {
191- // return g.SetGroupMemberInfo(ctx, &group.SetGroupMemberInfo{GroupID: groupID, UserID: userID, Nickname: wrapperspb.String(groupMemberNickname)})
192- //}
193-
194174func (g * Group ) GetJoinedGroupList (ctx context.Context ) ([]* model_struct.LocalGroup , error ) {
195175 return g .db .GetJoinedGroupListDB (ctx )
196176}
@@ -524,22 +504,3 @@ func (g *Group) HandlerGroupApplication(ctx context.Context, req *group.GroupApp
524504func (g * Group ) GetGroupMemberNameAndFaceURL (ctx context.Context , groupID string , userIDs []string ) (map [string ]* model_struct.LocalGroupMember , error ) {
525505 return g .GetGroupMembersInfo (ctx , groupID , userIDs )
526506}
527-
528- //func (g *Group) SearchGroupMembersV2(ctx context.Context, req *group.SearchGroupMemberReq) ([]*model_struct.LocalGroupMember, error) {
529- // if err := req.Check(); err != nil {
530- // return nil, err
531- // }
532- // info, err := g.db.GetGroupInfoByGroupID(ctx, req.GroupID)
533- // if err != nil {
534- // return nil, err
535- // }
536- // if info.MemberCount <= pconstant.MaxSyncPullNumber {
537- // return g.db.SearchGroupMembersDB(ctx, req.Keyword, req.GroupID, true, false,
538- // int((req.Pagination.PageNumber-1)*req.Pagination.ShowNumber), int(req.Pagination.ShowNumber))
539- // }
540- // resp, err := util.CallApi[group.SearchGroupMemberResp](ctx, constant.SearchGroupMember, req)
541- // if err != nil {
542- // return nil, err
543- // }
544- // return datautil.Slice(resp.Members, g.pbGroupMemberToLocal), nil
545- //}
0 commit comments