24 lines
1,003 B
TypeScript
24 lines
1,003 B
TypeScript
import env from "../index";
|
|
|
|
const command = `${env.API_URI}/org/command`;
|
|
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}`,
|
|
|
|
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}`,
|
|
|
|
checkIdofficer: `${env.API_URI}/org/profile/keycloak/idofficer`,
|
|
|
|
commandRegister:(id:string)=>`${command}/register-tab0/${id}`,
|
|
commandRegisterByType:(id:string,type:string)=>`${command}/register-tab4/${type}/${id}`
|
|
};
|