package org.dromara.web.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.web.domain.DailyMealRecipe;
import org.dromara.web.domain.HospitalMealRecipe;

import java.util.Date;

/**
 * 日常膳食食谱明细业务对象 daily_meal_recipe
 *
 * @author Lion Li
 * @date 2025-07-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DailyMealRecipe.class, reverseConvertGenerate = false)
public class DailyMealRecipeBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 院内膳食主表ID
     */
    @NotNull(message = "院内膳食主表ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long planId;

    /**
     * 食谱序号(1-7)
     */
    @NotNull(message = "食谱序号(1-7)不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long recipeNo;

    /**
     * 餐次(如早餐/午餐/晚餐/早加/晚加等)
     */
    @NotBlank(message = "餐次(如早餐/午餐/晚餐/早加/晚加等)不能为空", groups = {AddGroup.class, EditGroup.class})
    private String mealTime;

    /**
     * 用餐时间
     */
    private Date eatTime;

    /**
     * 食物名称
     */
    private String foodName;

    /**
     * 食物id
     */
    private Long foodId;

    /**
     * 食谱分类Id
     */
    private Long foodCategoryId;

    /**
     * 食谱分类
     */
    private String foodCategoryName;

    /**
     * 食物重量(g)
     */
    private Long foodWeight;

    /**
     * 热量(kcal)
     */
    private Long calorie;

    /**
     * 份数
     */
    private Long amount;

    /**
     * 金额
     */
    private Long price;


}
