hrms-mgt/src/api/18_command/api.command.ts
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 d215283163 fix(command): edit-salary
2025-12-15 11:50:33 +07:00

30 lines
1.1 KiB
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}`,
//Digital Signature
commandDirector: `${env.API_URI}/org/profile/commander-director`,
commandEditSalary: `${command}/tab2/edit-salary`,
};