A self hosted chat application with end-to-end encrypted messaging.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
505 B

  1. package org.ros.chatto.service;
  2. import java.security.Principal;
  3. import java.util.List;
  4. import org.ros.chatto.dto.AdminUserDTO;
  5. import org.ros.chatto.repository.UserRepository;
  6. import org.springframework.stereotype.Service;
  7. import lombok.RequiredArgsConstructor;
  8. @Service
  9. @RequiredArgsConstructor
  10. public class AdminService {
  11. private final UserRepository userRepository;
  12. public List<AdminUserDTO> getOtherUsers(String principal) {
  13. return userRepository.getOtherUsers(principal);
  14. }
  15. }