2024-09-11 15:59:04 +07:00
|
|
|
import env from "../index";
|
|
|
|
|
|
2024-09-12 17:11:00 +07:00
|
|
|
const command = `${env.API_URI}/org/command`;
|
2024-09-23 17:00:32 +07:00
|
|
|
const commandSalary = `${env.API_URI}/org/commandSalary`;
|
2024-09-11 15:59:04 +07:00
|
|
|
|
|
|
|
|
export default {
|
2024-09-12 17:11:00 +07:00
|
|
|
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}`
|
2024-09-11 15:59:04 +07:00
|
|
|
};
|