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

63 lines
2.6 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`;
2024-04-17 11:53:12 +07:00
const devStrategy = `${env.API_URI}/development/strategy`;
2025-04-24 10:17:56 +07:00
const developmentScholarshipReport = `${env.API_URI}/development/report/scholarship`;
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}`,
2024-04-04 12:38:48 +07:00
/** history employee */
developmentProjectSearchEmployee: () => `${developmentOrg}/profile-employee/`,
/** รายการโครงการ*/
developmentMain: `${development}/main`,
developmentMainById: (id: string) => `${development}/main/${id}`,
developmentMainTab: (tab: string, id: string) =>
`${development}/main/${tab}/${id}`,
2024-07-30 18:07:41 +07:00
devUploadUser: `${development}/main/uploadUser/`,
/** ทุนการศึกษา/ฝึกอบรม*/
devScholarship,
devScholarshipByid: (id: string) => `${devScholarship}/admin/${id}`,
devScholarshipStatus: (id: string, status: string) =>
`${devScholarship}/status/${id}/${status}`,
/** download File */
developmentReportMain: () => `${developmentReport}/main`,
2025-02-11 18:58:33 +07:00
developmentReport: () => `${developmentReport}/`,
developmentReportHistory: () => `${developmentReport}/history-officer`,
developmentReportHistoryOfficer: () =>
`${developmentReport}/history-employee`,
developmentReportScholarship: () => `${developmentReport}/scholarship`,
2024-04-11 14:01:17 +07:00
// ปิดโครงการ
developmentMainFinish: (id: string) => `${development}/main/finish/${id}`,
// ข้อมูล status ของโครงการ
developmentMainStatus: (id: string) => `${development}/main/status/${id}`,
2024-04-17 11:53:12 +07:00
/** โครงการ tab ข้อมูลเบื้องต้น */
developmentBasicInfoById: (id: string) => `${development}/main/tab1/${id}`,
/**API ยุทธศาสตร์*/
devStrategy,
/** IDP */
2025-02-11 18:58:33 +07:00
developmentReQuestIDP: (id: string) =>
`${developmentOrg}/profile/development/registry/OFFICER/${id}`,
developmentIDP: (id: string) => `${development}/main/registry/OFFICER/${id}`,
2025-03-27 18:18:17 +07:00
2025-04-24 10:17:56 +07:00
devStrategySort:`${devStrategy}/sort`,
developmentScholarshipReport
};