# EngineeringRequestCommentDTO.java

    package cloud.wconnect.frontoffice.pojo.dto.engineeringrequest;

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

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

    /**
     * DTO: Engineering Request Comment
     *
     * @author yyt
     * 2023/3/27
     */
    @Data
    public class EngineeringRequestCommentDTO {

        /**
         * 备注 id
         */
        private Integer id;

        /**
         * 创建人
         */
        private Integer createId;

        /**
         * 创建人
         */
        private String createName;

        /**
         * 头像
         */
        private String avatar;

        /**
         * 创建时间
         */
        private Long createTime;

        /**
         * 类型（0:comment文字评论 1.comment附件）
         */
        @NotNull(message = "the commentType must not be null")
        @Range(min = 0, max = 1, message = "the commentType must in [0:text, 1:attachment]")
        private Integer commentType;

        /**
         * 内容
         */
        @NotBlank(message = "the content must not be blank")
        private String content;

    }