hrms-mgt/src/api/05_placement/api.placement.ts

69 lines
2.5 KiB
TypeScript
Raw Normal View History

2023-06-01 12:54:58 +07:00
import env from "../index";
2023-07-13 12:30:57 +07:00
const placement = `${env.API_PLACEMENT_URI}/placement`;
const orgTree = `${env.API_URI_ORG_TREE}`;
2023-08-04 12:07:24 +07:00
const order = `${env.API_PLACEMENT_URI}`;
const receive = `${env.API_PLACEMENT_URI}/placement/Receive`;
2023-07-13 09:10:43 +07:00
export default {
2023-07-12 14:50:35 +07:00
MainDetail: (year: number) => `${placement}/exam/${year}`,
yearOptions: () => `${placement}/fiscal`,
personalList: (examId: string) => `${placement}/pass/${examId}`,
2023-07-12 14:50:35 +07:00
disclaimF: () => `${placement}/pass/disclaim`,
2023-07-12 16:56:52 +07:00
deferment: () => `${placement}/pass/deferment`,
2023-07-12 14:50:35 +07:00
getStatCard: (examId: string) => `${placement}/pass/stat/${examId}`,
getDatapersonal: (id: string) => `${placement}/personal/${id}`,
putProperty: (id: string) => `${placement}/property/${id}`,
orgTree: orgTree,
placementPass: () => `${placement}/pass`,
placementDefermentInfo: (id: string) => `${placement}/pass/deferment/${id}`,
placementDisclaimInfo: (id: string) => `${placement}/pass/disclaim/${id}`,
2023-07-13 09:10:43 +07:00
//personal
placementPersonalId: (personalId: string) =>
2023-07-13 09:38:48 +07:00
`${placement}/personal/${personalId}`,
2023-07-13 09:10:43 +07:00
//personal
placementPropertyId: (personalId: string) =>
2023-07-13 09:38:48 +07:00
`${placement}/property/${personalId}`,
2023-07-13 09:10:43 +07:00
//information
placementInformationId: (personalId: string) =>
2023-07-13 09:38:48 +07:00
`${placement}/information/${personalId}`,
2023-07-13 09:10:43 +07:00
//address
placementAddressId: (personalId: string) =>
2023-07-13 09:38:48 +07:00
`${placement}/address/${personalId}`,
2023-07-13 09:10:43 +07:00
//family
2023-07-13 09:38:48 +07:00
placementFamilyId: (personalId: string) =>
`${placement}/family/${personalId}`,
2023-07-13 09:10:43 +07:00
//certificate
placementCertId: (personalId: string) =>
2023-07-13 09:38:48 +07:00
`${placement}/certificate/${personalId}`,
2023-07-13 09:10:43 +07:00
placementCertDetailId: (personalId: string, certificateId: string) =>
2023-07-13 09:38:48 +07:00
`${placement}/certificate/${personalId}/${certificateId}`,
2023-07-13 09:10:43 +07:00
//education
2023-07-13 09:38:48 +07:00
placementEducationId: (id: string) => `${placement}/education/${id}`,
2023-07-13 17:30:16 +07:00
// position
placementPosition: () => `${placement}/position/use`,
2023-07-20 17:57:05 +07:00
// putPositiom
2023-08-04 12:07:24 +07:00
putPosition: (id: any) => `${placement}/position/${id}`,
// clear Position
2023-08-04 12:07:24 +07:00
clearPosition: (personalId: string) => `${placement}/position/clear/${personalId}`,
// order
yearOptionsOrder: () => `${order}/order/fiscal-year`,
createOrder: () => `${order}/order/detail`,
2023-08-04 12:07:24 +07:00
listOrder: () => `${order}/order`,
detailOrder:(orderId:string) => `${order}/order/detail/${orderId}`,
deleteOrder:(orderId:string) => `${order}/order/${orderId}`,
2023-08-04 12:07:24 +07:00
typeOrder: () => `${order}/order/order-type`,
examroundOrder: () => `${order}/order/detail/exam-round`,
receiveData: () => `${receive}`,
receiveDataId: (id: string) => `${receive}/${id}`,
receivePosition: (id: string) => `${receive}/position/${id}`,
2023-07-13 09:10:43 +07:00
};