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

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;

/**
 * 移动端菜谱绑定关系对象 menu_app_recipe
 *
 * @author xsheng
 * @date 2025-04-03
 */


@Data
@ToString
@TableName("menu_app_recipe")
public class MenuAppRecipe extends Model<MenuAppRecipe> {
    private static final long serialVersionUID = 1L;
    private Long recipeId;
    private Integer bindType;
    private List<Long> recipeIds;

    /** 绑定时间 */
    @ApiModelProperty(value = "绑定时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "绑定时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime bindTime;

    /** 餐线id */
    @Excel(name = "餐线id")
    @ApiModelProperty(value = "餐线id")
    private Long mealLineId;

    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
