api รายละเอียดบรรจุ

This commit is contained in:
Thanit Konmek 2023-07-13 16:15:58 +07:00
parent 4854a01b7a
commit b29c6ca262
6 changed files with 230 additions and 1128 deletions

View file

@ -1,6 +1,6 @@
import type { zipCodeOption } from "../../components/PersonalDetail/profileType";
interface DataOption {
id: number;
id: number | null;
name: string;
disable?: boolean;
}
@ -102,7 +102,7 @@ interface Education {
}
interface Family {
couple: boolean;
couple: string;
marryPrefix: string;
marryPrefixId: string;
marryFirstName: string;
@ -121,6 +121,7 @@ interface Family {
}
interface Address {
registAddress: string;
registSubDistrict: string;
registSubDistrictId: string;
registZipCode: string;
@ -128,6 +129,7 @@ interface Address {
registDistrictId: string;
registProvince: string;
registProvinceId: string;
currentAddress: string;
currentSubDistrict: string;
currentSubDistrictId: string;
currentZipCode: string;
@ -135,10 +137,12 @@ interface Address {
currentDistrictId: string;
currentProvince: string;
currentProvinceId: string;
registSame: boolean;
registSame: string;
}
const AddressDataDefualt: Address = {
registAddress: "",
currentAddress: "",
registSubDistrict: "",
registSubDistrictId: "",
registZipCode: "",
@ -153,9 +157,27 @@ const AddressDataDefualt: Address = {
currentDistrictId: "",
currentProvince: "",
currentProvinceId: "",
registSame: false,
registSame: "0",
};
const FamilyDataDefualt: Family = {
couple: "0",
marryPrefix: "",
marryPrefixId: "",
marryFirstName: "",
marryLastName: "",
marryOccupation: "",
fatherPrefix: "",
fatherPrefixId: "",
fatherFirstName: "",
fatherLastName: "",
fatherOccupation: "",
motherPrefix: "",
motherPrefixId: "",
motherFirstName: "",
motherLastName: "",
motherOccupation: "",
};
export type {
DataOption,
DataOptionInsignia,
@ -175,4 +197,4 @@ export type {
optionData,
};
export { AddressDataDefualt };
export { AddressDataDefualt, FamilyDataDefualt };