hrms-mgt/src/api/15_development/api.development.ts

30 lines
1.2 KiB
TypeScript
Raw Normal View History

import env from "../index";
const development = `${env.API_URI}/development`;
const developmentOrg = `${env.API_URI}/org`;
const devScholarship = `${env.API_URI}/development/scholarship`;
const developmentReport = `${env.API_URI}/development/report`;
export default {
development,
/** history */
developmentHistoryList: (type: string) => `${development}/history/${type}/`,
developmentHistoryAdd: (type: string) => `${development}/history/${type}`,
developmentProjectSearch: () => `${development}/main/search`,
2024-04-04 12:38:48 +07:00
/** history employee */
developmentProjectSearchEmployee: () => `${developmentOrg}/profile-employee/`,
/** รายการโครงการ*/
developmentMain: `${development}/main`,
developmentMainById: (id: string) => `${development}/main/${id}`,
/** ทุนการศึกษา/ฝึกอบรม*/
devScholarship,
devScholarshipByid: (id: string) => `${devScholarship}/${id}`,
/** download File */
developmentReportMain:() =>`${developmentReport}/main`,
developmentReportHistory:() =>`${developmentReport}/history-officer`,
developmentReportHistoryOfficer:() =>`${developmentReport}/history-employee`,
developmentReportScholarship:() =>`${developmentReport}/scholarship`,
};