处理开台

This commit is contained in:
2026-01-11 01:49:45 +08:00
parent 9e957d5dea
commit a14a51d575
26 changed files with 2495 additions and 297 deletions

View File

@@ -9,10 +9,59 @@ import { request } from "./request";
// 获取店铺配置
// 获取商品
export function fetchGoods () {
return request({
url:'/index/goods',
})
}
// 获取套餐
export function fetchCombos(data : {}) {
return request({
url: '/index/combos',
data: data,
method: 'POST'
});
}
// 获取房间
export function fetchRooms(data : {}) {
return request({
url: '/index/rooms',
data: data,
method: 'POST'
});
}
// 预约
export function fetchBooking(data : {}) {
return request({
url: '/index/booking',
data: data,
method: 'POST'
});
}
// 取消预约
export function fetchUnBooking(data : {}) {
return request({
url: '/index/unbooking',
data: data,
method: 'POST'
});
}
// 开台/商品订单
export function fetchAddOrder(data : {}) {
return request({
url: '/index/addOrder',
data: data,
method: 'POST'
});
}
// 房间订单详情
export function fetchRoomOrder(roomId : Number) {
return request({
url: '/index/roomOrder',
data: { roomId: roomId },
})
}