# GmwrViewItemDTO.java

    package cloud.wconnect.workperformance.pojo.dto.gmwr.view;

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

    import jakarta.validation.constraints.NotNull;

    /**
     * DTO: View Item
     *
     * @author zc
     * @date 2024/12/31
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class GmwrViewItemDTO {
        /**
         * 项目分类
         */
        @NotNull(message = "The category cannot be null")
        @Range(min = 1, max = 8, message = "The category is limited 1-8")
        private Integer category;
        /**
         * 排序
         */
        @NotNull(message = "The sort cannot be null")
        private Integer sort;
    }