public Mono<List<Group>> authAndQueryGroups(
            @Nullable Set<Long> groupIds,
            @Nullable String name,
            @Nullable Date lastUpdatedDate,
            @Nullable Integer skip,
            @Nullable Integer limit,
            @Nullable List<Integer> fieldsToHighlight) {
        if (StringUtil.isNotBlank(name)) {
            return search(skip, limit, groupIds, name, fieldsToHighlight);
        }
        try {
            Validator.notNull(groupIds, "groupIds");
        } catch (ResponseException e) {
            return Mono.error(e);
        }
        if (groupIds.isEmpty()) {
            return PublisherPool.emptyList();
        }
        return groupRepository.findNotDeletedGroups(groupIds, lastUpdatedDate)
                .collect(CollectorUtil.toList(groupIds.size()));
    }
TODO: remove and keep {@link GroupService#queryGroupTypeIfActiveAndNotDeleted(Long, boolean)}
only.
turms-service/src/main/java/im/turms/service/domain/group/service/GroupService.java