// api/roomDetail.js - 房间详情相关API
import { GET, POST, PUT, DELETE } from '@/utils/request'

/**
 * 房间详情相关API
 */
export default {
  /**
   * 根据详情ID查询房间详情
   * @param {number} detailId 详情ID
   */
  getRoomDetailById(detailId) {
    return GET(`/system/detail/${detailId}`)
  },

  /**
   * 查询房间详情列表
   * @param {Object} params 查询参数
   */
  getRoomDetailList(params) {
    return GET('/system/detail/list', params)
  },

  /**
   * 批量新增房间详情
   * @param {Array} roomDetails 房间详情数据数组
   */
  addRoomDetails(roomDetails) {
    return POST('/system/detail', roomDetails)
  },

  /**
   * 修改房间详情
   * @param {Object} roomDetail 房间详情数据
   */
  updateRoomDetail(roomDetail) {
    return PUT('/system/detail', roomDetail)
  },

  /**
   * 批量删除房间详情
   * @param {Array} detailIds 详情ID数组
   */
  deleteRoomDetails(detailIds) {
    return DELETE(`/system/detail/${detailIds}`)
  }
}