รายการคำสั่ง ==> API

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-12 17:11:00 +07:00
parent 71be6d095f
commit 15b33b147a
14 changed files with 568 additions and 145 deletions

View file

@ -1,7 +1,11 @@
import env from "../index";
const command = `${env.API_URI}/order`;
const command = `${env.API_URI}/org/command`;
export default {
commandType: `${command}/order-type`,
commandType: `${command}Type/list`, //ประเภทคำสั่ง
commandList: `${command}/list`, //list รายการ
command, //สร้างคำสั่ง
commandAction: (commandId: string, type: string) =>
`${command}/${type}/${commandId}`,
};