import http from './index.js';

// 分页查询订单
export const pageOrder = (params) => http.get('/shop/order-goods/page', {params})

// 分页查询订单
export const listOrder = (params) => http.get('/shop/order-goods', {params})

// 查询订单
export const getOrder = (orderId) => http.get('/shop/order-goods/' + orderId)

// 添加订单
export const addOrder = (data) => http.post('/shop/order-goods', data)

// 删除订单
export const removeOrder = (id) => http.get('/open/order-goods/remove/' + id)

// 单个取消菜品
export const cancelfood = (data) => http.post('/open/order-goods/cancel',data)

export default {
	pageOrder,
	listOrder,
	getOrder,
	addOrder,
	removeOrder,
	cancelfood
}
