hrms-admin/src/api/15_development/api.development.ts
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 7a54b6d9b2 fix bug
2024-06-06 14:33:31 +07:00

51 lines
2.2 KiB
TypeScript

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`;
const devStrategy = `${env.API_URI}/development/strategy`;
export default {
development,
/** history */
developmentHistoryList: (type: string) =>
`${development}/history/${type}/filter`,
developmentHistoryListByid: (type: string, id: string) =>
`${development}/history/${type}/${id}`,
developmentHistoryAdd: (type: string) => `${development}/history/${type}`,
developmentProjectSearch: () => `${development}/main/search`,
developmentHistoryListOrg: (type: string, year: number) =>
`${development}/history/${type}/org/${year}`,
/** history employee */
developmentProjectSearchEmployee: () => `${developmentOrg}/profile-employee/`,
/** รายการโครงการ*/
developmentMain: `${development}/main`,
developmentMainById: (id: string) => `${development}/main/${id}`,
developmentMainTab: (tab: string, id: string) =>
`${development}/main/${tab}/${id}`,
/** ทุนการศึกษา/ฝึกอบรม*/
devScholarship,
devScholarshipByid: (id: string) => `${devScholarship}/${id}`,
devScholarshipStatus: (id: string, status: string) =>
`${devScholarship}/status/${id}/${status}`,
/** download File */
developmentReportMain: () => `${developmentReport}/main`,
developmentReportHistory: () => `${developmentReport}/history-officer`,
developmentReportHistoryOfficer: () =>
`${developmentReport}/history-employee`,
developmentReportScholarship: () => `${developmentReport}/scholarship`,
// ปิดโครงการ
developmentMainFinish: (id: string) => `${development}/main/finish/${id}`,
// ข้อมูล status ของโครงการ
developmentMainStatus: (id: string) => `${development}/main/status/${id}`,
/** โครงการ tab ข้อมูลเบื้องต้น */
developmentBasicInfoById: (id: string) => `${development}/main/tab1/${id}`,
/**API ยุทธศาสตร์*/
devStrategy,
};