diff --git a/src/api/modules/engineer.js b/src/api/modules/engineer.js new file mode 100644 index 0000000..75eda3a --- /dev/null +++ b/src/api/modules/engineer.js @@ -0,0 +1,30 @@ +import service from "../request.js"; + +const API_BASE_URL = '/application'; + +// 待审核列表 +export function getApplicationList(query) { + return service({ + method: "get", + url: `${API_BASE_URL}/list`, + data: query, + }); +} + +// 通过 +export function approveApplication(query) { + return service({ + method: "get", + url: `${API_BASE_URL}/approve`, + data: query, + }); +} + +// 拒绝 +export function rejectApplication(query) { + return service({ + method: "get", + url: `${API_BASE_URL}/reject`, + data: query, + }); +} \ No newline at end of file diff --git a/src/api/modules/order.js b/src/api/modules/order.js new file mode 100644 index 0000000..1a9b1b9 --- /dev/null +++ b/src/api/modules/order.js @@ -0,0 +1,12 @@ +import service from "../request.js"; + +const API_BASE_URL = '/order'; + +// 订单列表 +export function getOrderList(query) { + return service({ + method: "get", + url: `${API_BASE_URL}/all/list`, + data: query, + }); +}