# BudgetDatabaseSchedulerDTO.java

    package cloud.wconnect.rateshop.pojo.dto.budgetdatabase;

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

    /**
     * DTO：scheduler
     *
     * @author: yyt
     * 2025-08-16
     */
    @Data
    public class BudgetDatabaseSchedulerDTO {

        /**
         * 定时任务 id
         */
        private String id;

        /**
         * 类型 ( 1:到期通知）
         */
        @NotNull(message = "the category must not be null")
        @Range(min = 1, max = 1, message = "the category must in [1: expiration notice]")
        private Integer category;

        /**
         * 触发时间规则（目前支持配置按天执行；样例：{"everyDay":{"hour":1,"minute":2}}）
         */
        @NotBlank(message = "the scheduler must not be blank")
        private String scheduler;

        /**
         * 开始时间，0表示立即生效
         */
        @NotNull(message = "the startDate must not be null")
        private Long startDate;

        /**
         * 0:停止；1:启动；
         */
        @NotNull(message = "the status must not be null")
        @Range(min = 0, max = 1, message = "the status must in [0:stop, 1:start]")
        private Integer status;

        /**
         * 拓展参数
         */
        private String parameters;

    }