ทะเบียนประวัติ: ประวัติส่วนตัว (GET, PUT)
This commit is contained in:
parent
93fc17cea0
commit
79f08f7569
5 changed files with 409 additions and 454 deletions
24
src/modules/04_registryNew/interface/request/Profile.ts
Normal file
24
src/modules/04_registryNew/interface/request/Profile.ts
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
interface RequestObject {
|
||||
bloodGroupId: string | null;
|
||||
relationshipId: string | null;
|
||||
genderId: string | null;
|
||||
posTypeId: string;
|
||||
posLevelId: string;
|
||||
religionId: string | null;
|
||||
citizenId: string;
|
||||
telephoneNumber: string | null;
|
||||
// nationality: string | null;
|
||||
ethnicity: string | null;
|
||||
birthDate: Date | null;
|
||||
dateRetire: Date | null;
|
||||
isProbation: boolean;
|
||||
keycloak: string;
|
||||
phone: string | null;
|
||||
email: string | null;
|
||||
position: string;
|
||||
lastName: string;
|
||||
firstName: string;
|
||||
prefix: string;
|
||||
}
|
||||
|
||||
export type { RequestObject };
|
||||
108
src/modules/04_registryNew/interface/response/Profile.ts
Normal file
108
src/modules/04_registryNew/interface/response/Profile.ts
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
interface ResponseObject {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
createdUserId: string;
|
||||
lastUpdatedAt: Date;
|
||||
lastUpdateUserId: string;
|
||||
createdFullName: string;
|
||||
lastUpdateFullName: string;
|
||||
prefix: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
citizenId: string;
|
||||
position: string;
|
||||
posLevelId: string | null;
|
||||
posTypeId: string | null;
|
||||
email: string | null;
|
||||
phone: string | null;
|
||||
keycloak: string | null;
|
||||
isProbation: boolean;
|
||||
dateRetire: Date | null;
|
||||
birthDate: Date;
|
||||
ethnicity: string | null;
|
||||
religionId: string | null;
|
||||
religion: Religion | null;
|
||||
telephoneNumber: null | null;
|
||||
genderId: string | null;
|
||||
gender: Gender | null;
|
||||
relationshipId: string | null;
|
||||
relationship: Relationship | null;
|
||||
bloodGroupId: string | null;
|
||||
bloodGroup: BloodGroup | null;
|
||||
posLevel: PosLevel | null;
|
||||
posType: PosType | null;
|
||||
|
||||
nationality?: string;
|
||||
}
|
||||
|
||||
interface Religion {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
lastUpdatedAt: Date;
|
||||
createdFullName: string;
|
||||
lastUpdateFullName: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
interface Gender {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
lastUpdatedAt: Date;
|
||||
createdFullName: string;
|
||||
lastUpdateFullName: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
interface Relationship {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
lastUpdatedAt: Date;
|
||||
createdFullName: string;
|
||||
lastUpdateFullName: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
interface BloodGroup {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
lastUpdatedAt: Date;
|
||||
createdFullName: string;
|
||||
lastUpdateFullName: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
interface PosLevel {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
createdUserId: string;
|
||||
lastUpdatedAt: Date;
|
||||
lastUpdateUserId: string;
|
||||
createdFullName: string;
|
||||
lastUpdateFullName: string;
|
||||
posLevelName: string;
|
||||
posLevelRank: number;
|
||||
posLevelAuthority: null;
|
||||
posTypeId: string;
|
||||
}
|
||||
|
||||
interface PosType {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
createdUserId: string;
|
||||
lastUpdatedAt: Date;
|
||||
lastUpdateUserId: string;
|
||||
createdFullName: string;
|
||||
lastUpdateFullName: string;
|
||||
posTypeName: string;
|
||||
posTypeRank: number;
|
||||
}
|
||||
|
||||
export type {
|
||||
ResponseObject,
|
||||
Religion,
|
||||
Gender,
|
||||
Relationship,
|
||||
BloodGroup,
|
||||
PosLevel,
|
||||
PosType,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue