# HkInventorySchedulerDTO.java

    package cloud.wconnect.workperformance.pojo.dto.hkinventory;

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;
    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    /**
     * 调度任务DTO
     */
    @Data
    public class HkInventorySchedulerDTO {

        /**
         * 主键ID
         */
        private String id;

        /**
         * 配置的分类
         */
        @NotNull(message = "the scheduler category must not be null")
        @Range(min = 1, max = 2, message = "the scheduler category must between in [1:Notify form filler 2:Notify manager]")
        private Integer category;

        /**
         * 任务状态
         */
        @NotNull(message = "the scheduler status must not be null")
        @Range(min = 0, max = 1, message = "the scheduler status is invalid")
        private Integer status;

        /**
         * 开始时间戳
         */
        @NotNull(message = "the scheduler startDate must not be null")
        private Long startDate;

        /**
         * 触发时间规则
         */
        @NotBlank(message = "the scheduler must not be null")
        private String scheduler;

        /**
         * 任务执行参数
         */
        private String parameters;

    }