feat : #12 recherche et filtre
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import { ProfileRepository } from '@app/domain/profiles/profile.repository';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Profile } from '@app/domain/profiles/profile.model';
|
||||
import { SearchFilters } from '@app/domain/search/search-filters';
|
||||
|
||||
export class ListProfilesUseCase {
|
||||
constructor(private readonly repo: ProfileRepository) {}
|
||||
|
||||
execute(params?: { search?: string; page?: number; pageSize?: number }): Observable<Profile[]> {
|
||||
execute(params?: SearchFilters): Observable<Profile[]> {
|
||||
return this.repo.list(params);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user