| import request from '../../utils/request' | 
| // 查询 | 
| export function fetchList(data) { | 
|   return request.post('/meetingAdmin/cloudService/business/bookings/page', data, { | 
|     trim: true | 
|   }) | 
| } | 
|   | 
| // 导出Excel | 
| export function exportExcel(data) { | 
|   return request.post('/meetingAdmin/cloudService/business/bookings/exportExcel', data, { | 
|     trim: true, | 
|     download: true | 
|   }) | 
| } | 
|   | 
| // 创建 | 
| export function create(data) { | 
|   return request.post('/meetingAdmin/cloudService/business/bookings/create', data) | 
| } | 
|   | 
| // 修改 | 
| export function updateById(data) { | 
|   return request.post('/meetingAdmin/cloudService/business/bookings/updateById', data) | 
| } | 
| // 取消 | 
| export function cancelById(data) { | 
|   return request.post('/meetingAdmin/cloudService/business/meeting/reservationCancel', data) | 
| } | 
| // 开始 | 
| export function startById(data) { | 
|   return request.post('/meetingAdmin/cloudService/business/meeting/start', data) | 
| } | 
| // 结束 | 
| export function meetingEndById(data) { | 
|   return request.post('/meetingAdmin/cloudService/business/meeting/reservationOver', data) | 
| } | 
| // 提前开始 | 
| export function startEarlyById(data) { | 
|   return request.post('/meetingAdmin/cloudService/business/meeting/startEarly', data) | 
| } | 
| //  | 
| export function overBookById(data) { | 
|   return request.post('/meetingAdmin/cloudService/business/meeting/reservationOver', data) | 
| } | 
| // 预定详情 | 
| export function BookDetailById(params) { | 
|   return request.get('/meetingAdmin/cloudService/web/meeting/meetingDetail', { | 
|     params | 
|   }) | 
| } | 
|   | 
| // 删除 | 
| export function deleteById(id) { | 
|   return request.get(`/meetingAdmin/cloudService/business/bookings/delete/${id}`) | 
| } | 
|   | 
| // 根据ID查询 | 
| export function bookingsDetail(id) { | 
|   return request.get(`/meetingAdmin/cloudService/business/bookings/${id}`) | 
| } | 
|   | 
| // 批量删除 | 
| export function deleteByIdInBatch(ids) { | 
|   return request.get('/meetingAdmin/cloudService/business/bookings/delete/batch', { | 
|     params: { | 
|       ids | 
|     } | 
|   }) | 
| } | 
|   | 
| // 会议室使用时长统计 | 
| export function getRoomStatistics(yearNum, roomId) { | 
|   return request.get(`/meetingAdmin/cloudService/business/bookings/getRoomStatistics?yearNum=${yearNum}&roomId=${roomId}`) | 
| } | 
| // 会议室使用时长统计导出Excel | 
| export function exportRoomStatistics(data) { | 
|   return request.post(`/meetingAdmin/cloudService/business/bookings/exportRoomStatistics`, data, { | 
|     trim: true, | 
|     download: true | 
|   }) | 
| } | 
|   | 
| // 人员参加会议时常 | 
| export function getUserStatistics(data) { | 
|   return request.post(`/meetingAdmin/cloudService/business/bookings/getUserStatistics`, data) | 
| } | 
| // 人员参会时长统计导出Excel | 
| export function exportUserStatistics(data) { | 
|   return request.post(`/meetingAdmin/cloudService/business/bookings/exportUserStatistics`, data, { | 
|     trim: true, | 
|     download: true | 
|   }) | 
| } | 
|   | 
| // | 
| export function reservationCancel(type) { | 
|   return request.get(`/meetingAdmin/cloudService/business/bookings/reservationCancel?type=${type}`) | 
| } | 
| // | 
| export function findMothBookingMeet({ roomId, dateMonth }) { | 
|   return request.post(`/meetingAdmin/cloudService/business/bookings/findMothBookingMeet?roomId=${roomId}&dateMonth=${dateMonth}`) | 
| } |