import request from '@/utils/request';

// 房源审核管理
export function getAdminRoomList(params: any) {
  return request.get('/api/admin/rooms', { params });
}

export function approveRoom(id: number) {
  return request.put(`/api/admin/rooms/${id}/approve`);
}

export function rejectRoom(id: number, reason: string) {
  return request.put(`/api/admin/rooms/${id}/reject`, { reason });
}
