|
|
@@ -40,7 +40,7 @@ func (*groupUserRepo) ListUser(groupId int64) ([]model.GroupUser, error) { |
|
|
|
// ListBannedUser 获取群组禁言用户信息 |
|
|
|
func (*groupUserRepo) ListBannedUser(groupId int64) ([]model.GroupUser, error) { |
|
|
|
var groupUsers []model.GroupUser |
|
|
|
err := db.DB.Find(&groupUsers, "group_id = ? and status", groupId, pb.GroupUserStatusType_GROUP_USER_STATUS_Banned).Error |
|
|
|
err := db.DB.Find(&groupUsers, "group_id = ? and status = ?", groupId, pb.GroupUserStatusType_GROUP_USER_STATUS_Banned).Error |
|
|
|
if err != nil { |
|
|
|
return nil, gerrors.WrapError(err) |
|
|
|
} |
|
|
|