ทะเบียนประวัติ: ประวัติส่วนตัว (แก้การ mock ข้อมูล)

This commit is contained in:
puriphatt 2024-03-13 10:35:49 +07:00
parent 41cc892c91
commit a8a82ac662
2 changed files with 112 additions and 43 deletions

View file

@ -28,6 +28,26 @@ interface InformationOps {
employeeTypeOps: DataOption[];
}
interface Information {
cardid: string | null;
prefix: string | null;
age: string | null;
prefixId: string | null;
firstname: string | null;
lastname: string | null;
birthDate: Date | null;
genderId: string | null;
bloodId: string | null;
nationality: string | null;
ethnicity: string | null;
statusId: string | null;
religionId: string | null;
tel: string | null;
employeeType: string | null;
employeeClass: string | null;
profileType: string | null;
}
interface AddressOps {
provinceOps: DataOption[];
districtOps: DataOption[];
@ -50,6 +70,26 @@ interface Address {
codep: string | null;
}
const defaultInformation: Information = {
cardid: null,
age: null,
prefix: null,
prefixId: null,
firstname: null,
lastname: null,
birthDate: null,
genderId: null,
bloodId: null,
nationality: null,
ethnicity: null,
statusId: null,
religionId: null,
tel: null,
employeeType: null,
employeeClass: null,
profileType: null,
};
const defaultAddress: Address = {
address: null,
provinceId: null,
@ -63,13 +103,15 @@ const defaultAddress: Address = {
codep: null,
same: "0",
};
export { defaultAddress };
export { defaultAddress, defaultInformation };
export type {
Pagination,
DataOption,
DataOption2,
zipCodeOption,
InformationOps,
Information,
AddressOps,
Address,
};