เพิ่ม interface ให้ any

This commit is contained in:
setthawutttty 2023-09-22 16:10:30 +07:00
parent 7d3c48142c
commit 77ccaec4e3
18 changed files with 259 additions and 73 deletions

View file

@ -30,9 +30,55 @@ interface orgFilter{
orgName:string
status:string
}
interface appointmentData{
citizenId:string
prefixId?:string
firstname?:string
lastname?:string
}
interface UserData {
personalId: string;
citizenId: string;
fullname: string;
organizationName: string ;
orgName: string ;
organizationShortName: string ;
positionNumber: string ;
positionPath: string;
status: string;
createdAt: string;
birthday: string;
}
interface ResponseData {
data: {
result: {
citizenId:string
profileId: string;
prefix: string;
firstname: string;
lastname: string;
organizationPositionOld: string;
positionLevelOld: string;
positionTypeOld: string;
status: string;
educationOld: string;
positionNumberOld: string;
salary: number;
reason: string;
positionDate: Date;
avatar: string;
};
};
}
export type {
listAppointType,
resData,
orgFilter
orgFilter,
appointmentData,
UserData,
ResponseData
}

View file

@ -45,8 +45,60 @@ interface listMainAPI {
createdAt:Date
}
interface OtherdataInterface {
citizenId: string;
prefixId: string;
firstname: string;
lastname: string;
}
interface resApiData {
data:{
result:{
id: string
profileId: string
citizenId: string
prefix: string
prefixId: string
firstname: string
lastname: string
dateOfBirth: Date
gender: string
nationality: string
race: string
religion: string
bloodGroup: string
relationship: string
telephoneNumber: string
status: string
amount: number
recruitDate: Date
posNoId: string
positionId: string
positionPathSideId: string
positionTypeId: string
positionLineId: string
positionLevelId: string
organizationPositionId: string
createdAt: Date
reason: string
educationOld: string
amountOld: number
positionTypeOld: string
positionLevelOld: string
positionNumberOld: string
organizationPositionOld: string
positionDate: Date
avatar: string
commandType: string
}
}
}
export type {
listMain,
listMainAPI,
OtherdataInterface,
resApiData
}

View file

@ -43,5 +43,10 @@ interface ResponseDataDetail {
status: string;
fullname: string;
}
interface rowFile {
no: number
fileName: string
pathName: string
export type { ResponseData, ResponseDataDetail, TypeFile };
}
export type { ResponseData, ResponseDataDetail, TypeFile ,rowFile};

View file

@ -20,5 +20,60 @@ interface officerType {
dateEnd: string;
dateStart: string;
}
export type { officerType };
interface ResponseData {
data: {
result: {
prefix: string;
firstName: string;
lastName: string;
id: string;
profileId: string;
avatar?: string;
position: string;
posNo: string;
positionLevel: string;
createdAt: string;
organization: string;
reason: string;
status: string;
date: Date;
salary: number;
positionTypeOld: string;
positionLevelOld: string;
positionNumberOld: string;
organizationPositionOld: string;
isActive: boolean;
};
};
}
interface resHelpDetail {
data: {
result: {
prefix: string;
firstName: string;
lastName: string;
id: string;
profileId: string;
avatar?: string;
position: string;
posNo: string;
positionLevel: string;
createdAt: string;
organization: string;
reason: string;
status: string;
dateStart: Date;
dateEnd: Date;
positionTypeOld: string;
positionLevelOld: string;
positionNumberOld: string;
organizationPositionOld: string;
isActive: boolean;
};
};
}
export type {
officerType,
ResponseData,
resHelpDetail
};