# AttachmentDTO.java

    package cloud.wconnect.workperformance.pojo.dto.monthlyreport;

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

    import jakarta.validation.constraints.NotBlank;

    /**
     * 附件dto
     *
     * @author lichen
     * @date 2023/9/4
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class AttachmentDTO {

        /**
         * 附件名称
         */
        @NotBlank(message = "The fileName cannot be blank")
        @Length(max = 200, message = "The fileName is limited 200 characters")
        private String fileName;

        /**
         * s3服务器key值
         */
        @NotBlank(message = "The fileKey cannot be blank")
        @Length(max = 500, message = "The fileKey is limited 500 characters")
        private String fileKey;

    }