package cn.iocoder.yudao.module.iot.controller.admin.recipe.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 配方管理主分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class RecipePageReqVO extends PageParam {

    @Schema(description = "配方名称", example = "李四")
    private String name;

    @Schema(description = "配方编码")
    private String recipeCode;

    @Schema(description = "关联配方类型", example = "2")
    private String recipeType;

    @Schema(description = "关联产品名字", example = "赵六")
    private String productName;

    @Schema(description = "关联设备名字", example = "赵六")
    private String machineName;

    @Schema(description = "配方描述")
    private String recipeDesc;

    @Schema(description = "是否启用（0-禁用，1-启用）")
    private Boolean isEnable;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "数据单位")
    private String dataUnit;

    // 新增：多选导出的ids字段（逗号分隔的id字符串，如"1,2,3"）
    @Schema(description = "多选导出ID集合（逗号分隔）", example = "1,2,3")
    private String ids;

}