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.
20 lines
505 B
20 lines
505 B
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);
|
|
}
|
|
}
|