# SaveServiceRequestCenterCommentDTO.java

    package cloud.wconnect.it.pojo.dto.servicerequestcenter;

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;
    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    /**
     * DTO: Service Request Center Comment
     *
     * @author: yyt
     * 2025-12-17
     */
    @Data
    public class SaveServiceRequestCenterCommentDTO {

        /**
         * 1.my request 页面，2.assigned to me 页面
         */
        @NotNull(message = "type is required")
        @Range(min = 1, max = 2, message = "type must in [1.my request, 2.assigned to me]")
        private Integer type;

        /**
         * 备注内容
         */
        @NotBlank(message = "content is required")
        private String content;

        /**
         * 附件
         */
        private String attachments;

    }