75 lines
1.5 KiB
JavaScript
Raw Permalink Normal View History

2024-03-12 11:13:43 +08:00
import {
request
} from '../selfRequest';
// 展厅列表
export function showroomListRq() {
return request({
url: '/api/showroom/list',
method: "post",
});
}
// 展厅详情
export function showroomDetailRq(id) {
return request({
url: '/api/showroom/get/' + id,
method: "get",
});
}
// 查询展厅能否预约
export function selectFreeShowRoomRq(data) {
return request({
url: '/api/showroom/selectFreeShowRoom',
method: "post",
data
});
}
// 查询展厅已经预约的记录
export function appointmentRecordRq(data) {
return request({
url: '/api/showroom/appointmentRecord',
method: "post",
data
});
}
2024-03-12 17:25:24 +08:00
// 查询字典
export function listByTypeRq(data) {
return request({
url: '/api/showroom/listByType',
method: "post",
data
});
}
// 新增展厅预约记录
export function saveShowRoomRecordRq(data) {
return request({
url: '/api/showroom/saveShowRoomRecord',
method: "post",
data
});
}
2024-03-13 09:51:10 +08:00
// 查询预约记录
export function selectShowroomRecordRq(data) {
return request({
url: `/api/showroom/selectShowroomRecord?pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
method: "post",
data
});
2024-03-13 10:45:28 +08:00
}
// 查询展厅预约详情
export function selectShowroomRecordByIdRq(id) {
return request({
url: '/api/showroom/selectShowroomRecordById/' + id,
method: "get",
});
2024-03-13 09:51:10 +08:00
}