23 lines
856 B
TypeScript
23 lines
856 B
TypeScript
/**
|
|
* api ระบบจัดการข้อมูลหลัก
|
|
* เมนูย่อย: ปฏิทินวันหยุด
|
|
*/
|
|
import env from "../index";
|
|
const holiday = `${env.API_URI}/metadata/holiday/`;
|
|
|
|
export default {
|
|
/**
|
|
* api ชั้นเครื่องราชฯ
|
|
*/
|
|
listHolidayHistoryAdd: (category: string) =>
|
|
`${holiday}range/add/${category}`,
|
|
listHolidayHistoryEdit: (category: string) =>
|
|
`${holiday}range/edit/${category}`,
|
|
listHolidayHistoryDelete: (category: string) =>
|
|
`${holiday}range/delete/${category}`,
|
|
listHolidayHistoryYear: (year: number) => `${holiday}${year}`,
|
|
listHolidayHistoryYearMonth: (year: number, month: number) =>
|
|
`${holiday}${year}/${month}`,
|
|
listHolidayCopy: `${holiday}copy`,
|
|
summaryHolidayHistoryYear: (year: number) => `${holiday}summary/${year}`,
|
|
};
|