package org.dromara.system.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import org.dromara.system.domain.SysRecipeFoodIngredient;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;



/**
 * 食谱与食材关联视图对象 sys_recipe_food_ingredient
 *
 * @author Lion Li
 * @date 2025-07-01
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysRecipeFoodIngredient.class)
public class SysRecipeFoodIngredientVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 食谱ID
     */
    @ExcelProperty(value = "食谱ID")
    private Long recipeId;

    /**
     * 食材ID
     */
    @ExcelProperty(value = "食材ID")
    private Long foodIngredientId;

    /**
     * 用量（可选，单位自定义）
     */
    @ExcelProperty(value = "用量", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "可=选，单位自定义")
    private BigDecimal quantity;

    /**
     * 热量（kcal）
     */
    @ExcelProperty(value = "热量", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "k=cal")
    private BigDecimal calories;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;
}
