feat : #12 recherche et filtre
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
import { AuthRepository } from '@app/domain/authentification/auth.repository';
|
||||
|
||||
export class ConfirmPasswordResetUsecase {
|
||||
constructor(private readonly authRepo: AuthRepository) {}
|
||||
|
||||
execute(resetToken: string, newPassword: string, confirmPassword: string) {
|
||||
return this.authRepo.confirmPasswordReset(resetToken, newPassword, confirmPassword);
|
||||
}
|
||||
}
|
||||
@@ -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