# MonthlyConfigItemDTO.java

    package cloud.wconnect.workperformance.pojo.dto.saleskpi.monthly.basic;

    import cloud.wconnect.commonlib.pojo.dto.jsonview.Views;
    import com.fasterxml.jackson.annotation.JsonView;
    import lombok.AllArgsConstructor;
    import lombok.Builder;
    import lombok.Data;
    import lombok.NoArgsConstructor;
    import org.hibernate.validator.constraints.Length;

    import jakarta.validation.constraints.NotBlank;

    /**
     * DTO: Monthly Config Item
     *
     * @author zc
     * @date 2023/09/07
     */
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public class MonthlyConfigItemDTO {

        /**
         * Item id
         */
        @JsonView(Views.ListView.class)
        private Integer itemId;

        /**
         * Item title
         */
        @JsonView(Views.ListView.class)
        @NotBlank(message = "The title cannot be blank")
        @Length(max = 255, message = "The title is limited 255 characters")
        private String title;

        /**
         * Item type （1：普通 item  2：员工绑定 segment）
         */
        private Integer type;
    }