feat: initial project setup with core infrastructure and api clients
- Add environment configs for dev/staging/prod environments - Implement centralized axios request utility with standardized error handling - Add shared TypeScript types for API responses and requests - Create comprehensive API client modules for all core endpoints - Configure vue router with all application page routes - Add icon fonts, static assets, and loading animations - Set up project documentation and collaboration guidelines - Remove deprecated uni-app bridge component files
This commit is contained in:
36
src/api/workOrder.ts
Normal file
36
src/api/workOrder.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import { request } from "../utils/request";
|
||||
|
||||
// 获取用户订单列表
|
||||
export function userWorkOrderList(args: any) {
|
||||
return request({
|
||||
url: "/hotelBiz/workOrder/userWorkOrderList",
|
||||
method: "post",
|
||||
data: args,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取工单类型
|
||||
export function workOrderTypeListForBiz() {
|
||||
return request({
|
||||
url: "/hotelBiz/workOrder/workOrderTypeListForBiz",
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 创建工单
|
||||
export function createWorkOrder(args: any) {
|
||||
return request({
|
||||
url: "/hotelBiz/workOrder/createWorkOrder",
|
||||
method: "post",
|
||||
data: args,
|
||||
});
|
||||
}
|
||||
|
||||
// 关闭工单
|
||||
export function closeWorkOrder(args: any) {
|
||||
return request({
|
||||
url: "/hotelBiz/workOrder/closeWorkOrder",
|
||||
method: "post",
|
||||
data: args,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user