feat : #11 pagination

This commit is contained in:
styve Lioumba
2025-11-30 18:39:42 +01:00
parent 2a9eb55e1b
commit 0c768296d1
21 changed files with 163 additions and 85 deletions

View File

@@ -12,3 +12,11 @@ export interface Profile {
projets: string[];
apropos: string;
}
export interface ProfilePaginated {
page: number;
perPage: number;
totalPages: number;
totalItems: number;
items: any[];
}

View File

@@ -1,9 +1,9 @@
import { Profile } from '@app/domain/profiles/profile.model';
import { Profile, ProfilePaginated } from '@app/domain/profiles/profile.model';
import { Observable } from 'rxjs';
import { SearchFilters } from '@app/domain/search/search-filters';
export interface ProfileRepository {
list(params?: SearchFilters): Observable<Profile[]>;
list(params?: SearchFilters): Observable<ProfilePaginated>;
getByUserId(userId: string): Observable<Profile>;
create(profile: Profile): Observable<Profile>;
update(profileId: string, profile: Partial<Profile>): Observable<Profile>;