import http from './index.js';

// 分页查询房源信息
export const pageHouseReservation = (params) => http.get('/house/house-reservation/page', {params})

// 查询全部房源信息
export const listHouseReservation = (params) => http.get('/house/house-reservation', {params})

// 查询房源信息(当期登录用户)
export const getHouseReservation = (userId) => http.get('/house/house-reservation/' + userId)

// 新增房源信息
export const addHouseReservation = (data) => http.post('/house/house-reservation', data)

// 删除房源信息
export const removeHouseReservation = (id) => http.get('/house/house-reservation/remove/' + id)

export default {
	pageHouseReservation,
	listHouseReservation,
	getHouseReservation,
	removeHouseReservation,
	addHouseReservation
}
