feat : #11 pagination
This commit is contained in:
@@ -12,3 +12,11 @@ export interface Profile {
|
||||
projets: string[];
|
||||
apropos: string;
|
||||
}
|
||||
|
||||
export interface ProfilePaginated {
|
||||
page: number;
|
||||
perPage: number;
|
||||
totalPages: number;
|
||||
totalItems: number;
|
||||
items: any[];
|
||||
}
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user