import http from './index.js';

// 分页查询商品
export const pageGoods = (params) => http.get('/open/goods/page', {params})

// 分页查询全部商品
export const listGoods = (params) => http.get('/open/goods', {params})

// 查询商品
export const getGoods = (GoodsId) => http.get('/open/Goods/' + GoodsId)

// 添加商品
export const addGoods = (data) => http.post('/shop/Goods', data)

// 查询菜品列表
export const getFoodList = (params) => http.get('/apps/bc-food/getFoodList', {params})

// 查询一周菜谱
export const getWeekFood = (params) => http.get('/apps/bc-food/getWeekFood', {params})

export default {
	pageGoods,
	listGoods,
	getGoods,
	addGoods,
	getFoodList,
	getWeekFood
}
