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

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
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 FormulaPageReqVO extends PageParam {

    @Schema(description = "公式名称", example = "王五")
    private String name;

    @Schema(description = "公式编号")
    private String formulaCode;

    @Schema(description = "公式")
    private String formula;

    @Schema(description = "结果类型（产量，电耗，浆耗，水耗，气耗，参数）", example = "1")
    private String resultType;
    @Schema(description = "单位")
    private String dataUnit;

    @Schema(description = "机台ID", example = "12374")
    private Long machineId;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "是否启用")
    private Boolean isEnable;

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

}