import request from '@/utils/request'

// 查询诊室列表（分页）
export function getClinicRoomList(query) {
  return request({
    url: '/appoinment/clinic-room/page',
    method: 'get',
    params: query
  })
}

// 查询诊室详情
export function getClinicRoomDetail(id) {
  return request({
    url: '/appoinment/clinic-room/' + id,
    method: 'get'
  })
}

// 新增诊室
export function addClinicRoom(data) {
  return request({
    url: '/appoinment/clinic-room',
    method: 'post',
    data: data
  })
}

// 编辑诊室
export function updateClinicRoom(data) {
  return request({
    url: '/appoinment/clinic-room',
    method: 'put',
    data: data
  })
}

// 删除诊室
export function deleteClinicRoom(id) {
  return request({
    url: '/appoinment/clinic-room/' + id,
    method: 'delete'
  })
}

// 获取科室列表（用于下拉选择）
export function getDepartmentList() {
  return request({
    url: '/app-common/department-list',
    method: 'get'
  })
}

// 获取租户列表（用于下拉选择）
export function getTenantList() {
  return request({
    url: '/system/tenant/page',
    method: 'get',
    params: {
      pageNum: 1,
      pageSize: 1000
    }
  })
}


