营养分析
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
package cn.iocoder.yudao.module.system.api.dishesnutrition;
|
||||
|
||||
|
||||
import cn.iocoder.yudao.module.system.api.dishesnutrition.dto.DishesNutritionRespDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 菜品营养 Service 接口
|
||||
*
|
||||
* @author 开发账号
|
||||
*/
|
||||
public interface DishesNutritionApi {
|
||||
/**
|
||||
* @Description: 根据菜品id 获取菜品营养
|
||||
* @Author: qjq
|
||||
* @Date: 2024/4/2 16:58
|
||||
* @return
|
||||
*/
|
||||
public List<DishesNutritionRespDTO> getDishesList(Long ids);
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package cn.iocoder.yudao.module.system.api.dishesnutrition.dto;
|
||||
|
||||
import lombok.*;
|
||||
|
||||
/**
|
||||
* 菜品营养 DO
|
||||
*
|
||||
* @author 开发账号
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class DishesNutritionRespDTO {
|
||||
/**
|
||||
* 营养名称
|
||||
*/
|
||||
private String nutritionName;
|
||||
/**
|
||||
* 营养数量
|
||||
*/
|
||||
private String nutritionNumber;
|
||||
/**
|
||||
* 菜品重量
|
||||
*/
|
||||
private String dishesNumber;
|
||||
/**
|
||||
* 菜品编号
|
||||
*/
|
||||
private Long dishesId;
|
||||
/**
|
||||
* 营养占比
|
||||
*/
|
||||
private String nutritionPer;
|
||||
|
||||
}
|
@ -182,4 +182,6 @@ public interface ErrorCodeConstants {
|
||||
ErrorCode DISHES_NUTRITION_NOT_EXISTS = new ErrorCode(1_002_034_002, "菜品营养不存在");
|
||||
// ========== 门店 流水 1_002_035_002 ==========
|
||||
ErrorCode DISHES_RAW_NOT_EXISTS = new ErrorCode(1_002_035_002, "菜品原材料不存在");
|
||||
// ========== 门店 流水 1_002_036_002 ==========
|
||||
ErrorCode BUSINESS_NOT_EXISTS = new ErrorCode(1_002_035_002, "营业统计不存在");
|
||||
}
|
||||
|
Reference in New Issue
Block a user