package com.bonus.canteen.core.cook.vo;

import com.bonus.canteen.core.utils.SysUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@ApiModel("小程序菜品详情")
@Data
public class AppletDishesDetailVO {
   @ApiModelProperty("菜品id")
   private Long dishesId;
   @ApiModelProperty("类型(1-菜品,2-套餐)")
   private Integer mealType;
   @ApiModelProperty("自定义id")
   private Long customId;
   @ApiModelProperty("菜品名称")
   private String dishesName;
   @ApiModelProperty("菜品别称")
   private String aliasName;
   @ApiModelProperty("菜品图片url")
   private String imageUrl;
   @ApiModelProperty("菜品简介")
   private String intro;
   @ApiModelProperty("菜品详情")
   private String particulars;
   @ApiModelProperty("是否收藏(1-收藏,2-未收藏)")
   private Integer isFavorites;
   @ApiModelProperty("菜品规格")
   private List<AppletDishesSizeV2VO> dishesDetailList;
   List<MenuMaterialBasVO> materialList;
   @ApiModelProperty("套餐菜品明细")
   private List<String> packageDishesList;

   public String getImageUrl() {
      return SysUtil.getCutFileUrl(this.imageUrl);
   }
}
