hrms-mgt/src/api/18_command/api.command.ts

17 lines
748 B
TypeScript
Raw Normal View History

import env from "../index";
const command = `${env.API_URI}/org/command`;
2024-09-23 17:00:32 +07:00
const commandSalary = `${env.API_URI}/org/commandSalary`;
export default {
commandType: `${command}Type/list`, //ประเภทคำสั่ง
commandList: `${command}/list`, //list รายการ
command, //สร้างคำสั่ง
commandAction: (commandId: string, type: string) =>
`${command}/${type}/${commandId}`,
2024-09-23 17:00:32 +07:00
2024-09-25 17:49:50 +07:00
commandSalaryList:(command:string)=>`${commandSalary}/list?commandSysId=${command}`,
commandSwap:(tab:string,direction:string,commandReciveId:string)=>`${command}/${tab}/swap/${direction}/${commandReciveId}`,
commandEditRecive:(tab:string,commandReciveId:string)=>`${command}/${tab}/recive/${commandReciveId}`
};