import request from '@/utils/request' // 获取营养信息类别-树 export function nutritionTypeListApi(data) { return request({ url: '/smart-canteen/cook_nutrition_type/nutritionTypeList', method: 'post', data: data }) } // 新增营养类别接口-树 export function nutritionTypeAddApi(data) { return request({ url: '/smart-canteen/cook_nutrition_type/add', method: 'post', data: data }) } // 修改营养类别接口-树 export function nutritionTypeEditApi(data) { return request({ url: '/smart-canteen/cook_nutrition_type/edit', method: 'post', data: data }) } // 删除营养类别接口-树 export function nutritionTypeDelApi(data) { return request({ url: '/smart-canteen/cook_nutrition_type/del/'+data.id, method: 'post' }) } // 查询获取营养信息列表 export function listNutrition(query) { return request({ url: '/smart-canteen/cook_nutrition/list', method: 'get', params: query }) } // 新增 export function addMenuNutrition(data) { return request({ url: '/smart-canteen/menu_nutrition/add', method: 'post', data: data }) } // 修改 export function updateNutrition(data) { return request({ url: '/smart-canteen/cook_nutrition/edit', method: 'post', data: data }) } // 删除 export function delNutrition(data) { return request({ url: '/smart-canteen/cook_nutrition/del/'+data.categoryId, method: 'post' }) } // 查询详细数据 export function getNutritionInfo(data) { return request({ url: '/smart-canteen/cook_nutrition/getInfo/'+data.nutritionId, method: 'get', }) } // 获取所有营养信息 export function nutritionAllListApi(data) { return request({ url: '/smart-canteen/cook_nutrition/getListByCategoryId', method: 'post', data: data }) }