# SpecialEventDTO.java

    package cloud.wconnect.workperformance.pojo.dto.sva.specialevent;

    import cloud.wconnect.commonlib.pojo.dto.group.Addition;
    import cloud.wconnect.commonlib.pojo.dto.group.Edition;
    import lombok.Data;
    import org.hibernate.validator.constraints.Length;

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;
    import jakarta.validation.constraints.Null;

    /**
     * DTO类：special event
     *
     * @author zc
     * @date 2023/3/14
     */
    @Data
    public class SpecialEventDTO {

        /**
         * special event id
         */
        @NotNull(message = "The id cannot be null.", groups = Edition.class)
        @Null(message = "The id cannot be set.", groups = Addition.class)
        private Integer id;

        /**
         * 事件日期
         */
        @NotNull(message = "The theDate cannot be null.", groups = Addition.class)
        private Long theDate;

        /**
         * 事件标题
         */
        @NotBlank(message = "The eventTitle cannot be blank.")
        private String eventTitle;

        /**
         * 分类推荐时数({"1002":8,"1003":9,...})
         */
        @NotBlank(message = "The categoryRecomHours cannot be blank.")
        @Length(max = 1000, message = "The categoryRecomHours is limited 1000 characters.")
        private String categoryRecomHours;
    }