profiles => format clean archi
This commit is contained in:
14
src/app/domain/profiles/profile.model.ts
Normal file
14
src/app/domain/profiles/profile.model.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export interface Profile {
|
||||
id: string;
|
||||
created: string;
|
||||
updated: string;
|
||||
profession: string;
|
||||
utilisateur: string;
|
||||
estVerifier: boolean;
|
||||
secteur: string;
|
||||
reseaux: JSON;
|
||||
bio: string;
|
||||
cv: string;
|
||||
projets: string[];
|
||||
apropos: string;
|
||||
}
|
||||
9
src/app/domain/profiles/profile.repository.ts
Normal file
9
src/app/domain/profiles/profile.repository.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Profile } from '@app/domain/profiles/profile.model';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
export interface ProfileRepository {
|
||||
list(params?: { search?: string; page?: number; pageSize?: number }): Observable<Profile[]>;
|
||||
getByUserId(userId: string): Observable<Profile | null>;
|
||||
create(profile: Profile): Observable<Profile>;
|
||||
update(id: string, profile: Partial<Profile>): Observable<Profile>;
|
||||
}
|
||||
Reference in New Issue
Block a user