Refactoring code module 04_registryPerson

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-18 17:24:21 +07:00
parent 1164d79122
commit eeb92dfb5d
46 changed files with 1935 additions and 2230 deletions

View file

@ -14,6 +14,7 @@ interface DataLevel {
interface DataPerson {
avatar?: string;
avatarName?: string;
citizenId: string;
firstName: string;
id: string;
@ -25,4 +26,138 @@ interface DataPerson {
rank?: string;
}
export type { DataType, DataLevel, DataPerson };
interface DateRequest {
createdAt: string;
createdFullName: string;
detail: string;
fullname: string;
id: string;
lastUpdateFullName: string;
lastUpdatedAt: string;
remark: string;
status: string;
topic: string;
}
interface DataProfile {
avatar: string;
avatarName: string;
birthDate: string;
bloodGroup: string;
citizenId: string;
createdAt: string;
createdFullName: string;
createdUserId: string;
currentAddress: string;
currentDistrictId: string;
currentProvinceId: string;
currentSubDistrictId: string;
currentZipCode: string;
dateAppoint: string;
dateLeave: string;
dateRetire: string;
dateRetireLaw: string;
dateStart: string;
dutyTimeEffectiveDate: string;
dutyTimeId: string;
email: string;
ethnicity: string;
firstName: string;
gender: string;
govAgeAbsent: number;
govAgePlus: number;
id: string;
isLeave: boolean;
isProbation: boolean;
keycloak: string;
lastName: string;
lastUpdateFullName: string;
lastUpdateUserId: string;
lastUpdatedAt: string;
leaveReason: string;
nationality: string;
posLevelId: string;
phone: string;
posTypeId: string;
position: string;
prefix: string;
rank: string;
reasonSameDate: null;
registrationAddress: string;
registrationDistrictId: string;
registrationProvinceId: string;
registrationSubDistrictId: string;
registrationZipCode: string;
relationship: string;
religion: string;
telephoneNumber: string;
posLevel: {
createdAt: string;
createdFullName: string;
createdUserId: string;
id: string;
lastUpdateFullName: string;
lastUpdateUserId: string;
lastUpdatedAt: string;
posLevelAuthority: string;
posLevelName: string;
posLevelRank: number;
posTypeId: string;
};
posType: {
createdAt: string;
createdFullName: string;
createdUserId: string;
id: string;
lastUpdateFullName: string;
lastUpdateUserId: string;
lastUpdatedAt: string;
posTypeName: string;
posTypeRank: number;
};
}
interface DataLeave {
createdAt: string;
createdFullName: string;
createdUserId: string;
dateLeaveEnd: string;
dateLeaveStart: string;
id: string;
lastUpdateFullName: string;
lastUpdateUserId: string;
lastUpdatedAt: string;
leaveCount: number;
leaveDays: number;
leaveType: DataLeaveType;
leaveTypeId: string;
profileEmployeeId: string;
profileId: string;
reason: string;
status: string;
totalLeave: number;
typeLeaveId: string;
}
interface DataLeaveType {
code: string;
createdAt: string;
createdUserId: string;
id: string;
lastUpdateFullName: string;
lastUpdateUserId: string;
lastUpdatedAt: string;
limit: number;
name: string;
refCommandDate: string;
}
export type {
DataType,
DataLevel,
DataPerson,
DateRequest,
DataProfile,
DataLeave,
DataLeaveType,
};