import http from './index.js';

// 分页查询发布菜品
export const pageBCPlan = (params) => http.get('/apps/bc-plan/page', {params})

// 查询全部发布菜品
export const listBCPlan = (params) => http.get('/apps/bc-plan', {params})

// 查询单天发布菜品
export const getBCPlan = (orderId) => http.get('/apps/bc-plan/' + orderId)

// 发布菜品
export const addBCPlan = (data) => http.post('/apps/bc-plan', data)

// 删除发布菜品
export const removeBCPlan = (id) => http.get('/apps/bc-plan/remove/' + id)

export default {
	pageBCPlan,
	listBCPlan,
	getBCPlan,
	addBCPlan,
	removeBCPlan
}
