/**
 * api รายงานทั้งหมด
 */
import env from "../index";
const reportOrder = `${env.API_REPORT2_URI}/report/order`;
const reportRetire = `${env.API_REPORT2_URI}/report/retire`;
const reportProbation = `${env.API_REPORT2_URI}/report/probation`;
const reportResign = `${env.API_REPORT2_URI}/report/resign/33`;
const reportTransfer = `${env.API_REPORT2_URI}/report/transfer`;
const reportDeceased = `${env.API_REPORT2_URI}/report/deceased`;

export default {
  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}/${fileType}/${id}`,
    reportResignList: (fileType: string, id: string) =>
    `${reportResign}/${fileType}/${id}`,

  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,no:number) => `${reportProbation}/16/${type}/${id}/${no}`,
    reportEvaluateChairman:(type:string, id:string,no:number) => `${reportProbation}/17/${type}/${id}/${no}`,
    reportEvaluateResult:(type:string, id:string) => `${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}`





  };
