|
@@ -325,7 +325,13 @@ func (*groupApp) SetGroupMemberRemoveBanned(ctx context.Context, optId, groupId |
|
|
//1、更新 `group_user` 的 status 状态 |
|
|
//1、更新 `group_user` 的 status 状态 |
|
|
db.DB.Model(model.GroupUser{}).Where("user_id in (?) and group_id = ?", removeUserIds, groupId).Updates(model.GroupUserV2{Status: sql.NullInt32{Int32: int32(pb.GroupUserStatusType_GROUP_USER_STATUS_NORMAL), Valid: true}}) |
|
|
db.DB.Model(model.GroupUser{}).Where("user_id in (?) and group_id = ?", removeUserIds, groupId).Updates(model.GroupUserV2{Status: sql.NullInt32{Int32: int32(pb.GroupUserStatusType_GROUP_USER_STATUS_NORMAL), Valid: true}}) |
|
|
|
|
|
|
|
|
//2、给取消禁言用户推送消息 |
|
|
|
|
|
|
|
|
//2、删除缓存 |
|
|
|
|
|
err := repo.GroupCache.Del(groupId) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return err |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//3、给取消禁言用户推送消息 |
|
|
for _, u := range removeUserIds { |
|
|
for _, u := range removeUserIds { |
|
|
err = group.PushGroupMemberRemoveBanned(ctx, optId, u) |
|
|
err = group.PushGroupMemberRemoveBanned(ctx, optId, u) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|