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

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

import java.util.List;

@ApiModel("获取一周菜谱食堂列表")
@Data
public class AppletWeekCanteenVO {
   @ApiModelProperty("菜谱id")
   @JsonFormat(
      shape = JsonFormat.Shape.STRING
   )
   private Long recipeId;
   private Long stallId;
   @ApiModelProperty("档口名称")
   private String stallName;
   private Long canteenId;
   @ApiModelProperty("食堂名称")
   private String canteenName;
   @ApiModelProperty("食堂图片")
   private String canteenImgUrl;
   @ApiModelProperty("档口图片")
   private String stallImgUrl;
   @ApiModelProperty("档口标签")
   private List<String> labelList;

   public String getCanteenImgUrl() {
      return SysUtil.getCutFileUrl(this.canteenImgUrl);
   }

   public String getStallImgUrl() {
      return SysUtil.getCutFileUrl(this.stallImgUrl);
   }

}
