hrms-mgt/src/api/reports/api.report.ts

50 lines
2.2 KiB
TypeScript
Raw Normal View History

/**
* api
*/
import env from "../index";
const reportOrder = `${env.API_REPORT2_URI}/report/order`;
2025-02-03 17:29:15 +07:00
const reportRetire = `${env.API_REPORT_URI}/retirement`;
const reportProbation = `${env.API_REPORT_URI}/placement/probation`;
const reportResign = `${env.API_REPORT_URI}/retirement/resign/33`;
const reportTransfer = `${env.API_REPORT_URI}/placement/transfer`;
const reportDeceased = `${env.API_REPORT_URI}/retirement/deceased`;
const reportTemplate = `${env.API_REPORT_TEMPLATE_URI}`;
export default {
2023-08-26 18:37:58 +07:00
reportOrderCover: (fileType: string, id: string, commandCode: string) =>
`${reportOrder}/${commandCode}/cover/${fileType}/${id}`,
reportOrderAttachment: (fileType: string, id: string, commandCode: string) =>
`${reportOrder}/${commandCode}/attachment/${fileType}/${id}`,
reportRetireList: (fileType: string, id: string) =>
`${reportRetire}/31/${fileType}/${id}`, // Get api/v1/retirement/31/{exportType}/{Id} โหลด pdf เกษียณ
reportResignList: (fileType: string, id: string) =>
2023-08-29 14:43:05 +07:00
`${reportResign}/${fileType}/${id}`,
2023-08-26 13:17:07 +07:00
fileCover: (format: string, fileType: string, id: string) =>
`${reportOrder}/${format}/cover/${fileType}/${id}`,
fileAttachment: (format: string, fileType: string, id: string) =>
`${reportOrder}/${format}/attachment/${fileType}/${id}`,
//ระบบทดลองงาน
reportAssign: (type: string, id: string) =>
`${reportProbation}/13/${type}/${id}`,
reportEvaluateRecord1: (type: string, id: string) =>
`${reportProbation}/14/${type}/${id}`,
// reportEvaluateRecord2:(type:string, id:string) => `${reportProbation}/15/${type}/${id}`,
reportEvaluate: (type: string, id: string) =>
`${reportProbation}/16/${type}/${id}`,
reportEvaluateChairman: (type: string, id: string) =>
`${reportProbation}/17/${type}/${id}`,
reportEvaluateResult: (type: string, id: string) =>
2024-08-22 12:05:41 +07:00
`${reportProbation}/18/${type}/${id}`,
// reportSurvey:(type:string, id:string) => `${reportProbation}/19/${type}/${id}`,
//filetransfer
reportTransferFile: (no: number, type: string, id: string) =>
`${reportTransfer}/${no}/${type}/${id}`,
DeceasedReport: (type: string, id: string) =>
`${reportDeceased}/36/${type}/${id}`,
reportTemplate,
};