Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 916bd63

Browse files
committed
added user country
1 parent 4bb555b commit 916bd63

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

projects/funixproductions-requests/src/lib/services/funixproductions-api/user/dtos/requests/user-creation-dto.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {ApiDTO} from "../../../../core/dtos/api-dto";
2+
import {UserCountry} from "../user-dto";
23

34
export class UserCreationDTO extends ApiDTO {
45
username: string = '';
@@ -7,4 +8,5 @@ export class UserCreationDTO extends ApiDTO {
78
passwordConfirmation: string = '';
89
acceptCGV: boolean = false;
910
acceptCGU: boolean = false;
11+
country: UserCountry = new UserCountry();
1012
}

projects/funixproductions-requests/src/lib/services/funixproductions-api/user/dtos/user-dto.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,12 @@ export class UserDTO extends ApiDTO {
1313
email: string = '';
1414
role?: UserRole
1515
valid: boolean = true;
16+
country: UserCountry = new UserCountry();
1617
}
18+
19+
export class UserCountry {
20+
name: string = 'France';
21+
code: number = 250;
22+
countryCode2Chars: string = 'FR';
23+
countryCode3Chars: string = 'FRA';
24+
}

0 commit comments

Comments
 (0)