profiles => format clean archi
This commit is contained in:
11
src/app/usecase/profiles/list-profiles.usecase.ts
Normal file
11
src/app/usecase/profiles/list-profiles.usecase.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { ProfileRepository } from '@app/domain/profiles/profile.repository';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Profile } from '@app/domain/profiles/profile.model';
|
||||
|
||||
export class ListProfilesUseCase {
|
||||
constructor(private readonly repo: ProfileRepository) {}
|
||||
|
||||
execute(params?: { search?: string; page?: number; pageSize?: number }): Observable<Profile[]> {
|
||||
return this.repo.list(params);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user