# WeeklyMonthlyRevenueSchedulerDTO.java

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

    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;
    import java.io.Serial;
    import java.io.Serializable;

    /**
     * DTO: Weekly Monthly Revenue Scheduler
     *
     * @author zc
     * @date 2024/5/15
     */
    @Data
    public class WeeklyMonthlyRevenueSchedulerDTO implements Serializable {

        @Serial
        private static final long serialVersionUID = 1L;

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

        /**
         * 资产ID
         */
        private Integer propertyId;

        /**
         * 配置的分类
         */
        @NotNull(message = "The scheduler category cannot be null")
        private Integer category;

        /**
         * 任务状态（0:停止；1:启动）
         */
        @NotNull(message = "The scheduler status cannot be null")
        @Range(min = 0, max = 1, message = "The scheduler status must be in [0:stop, 1:initiate]")
        private Integer status;

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

        /**
         * 触发时间规则
         */
        @NotBlank(message = "The scheduler cannot be blank")
        private String scheduler;

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

    }