io.rocketbase.commons.api.UserSearchApi Maven / Gradle / Ivy
The newest version!
package io.rocketbase.commons.api;
import io.rocketbase.commons.dto.PageableResult;
import io.rocketbase.commons.dto.appuser.QueryAppUser;
import io.rocketbase.commons.model.AppUserReference;
import lombok.SneakyThrows;
import org.springframework.data.domain.Pageable;
import java.util.Optional;
public interface UserSearchApi {
@SneakyThrows
PageableResult search(QueryAppUser query, Pageable pageable);
Optional findByUsernameOrId(String usernameOrId);
}