mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-01-13 08:58:48 +00:00
guardando presupuestos anonimos
This commit is contained in:
@ -1,7 +1,19 @@
|
||||
package com.imprimelibros.erp.users;
|
||||
|
||||
import org.springframework.security.core.userdetails.UserDetailsService;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
public interface UserService extends UserDetailsService {
|
||||
|
||||
|
||||
/**
|
||||
* Busca usuarios por rol y texto libre (en username, email o fullName),
|
||||
* con paginación.
|
||||
*
|
||||
* @param role nombre del rol (ej. "ROL_USER")
|
||||
* @param query texto de búsqueda (puede ser null o vacío)
|
||||
* @param pageable paginación
|
||||
* @return página de usuarios
|
||||
*/
|
||||
Page<User> findByRoleAndSearch(String role, String query, Pageable pageable);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user