package org.ros.chatto.service;

import java.security.Principal;
import java.util.List;

import org.ros.chatto.dto.AdminUserDTO;
import org.ros.chatto.repository.UserRepository;
import org.springframework.stereotype.Service;

import lombok.RequiredArgsConstructor;

@Service
@RequiredArgsConstructor
public class AdminService {
    private final UserRepository userRepository;

    public List<AdminUserDTO> getOtherUsers(String principal) {
        return userRepository.getOtherUsers(principal);
    }
}