# UpdateEngineeringRequestDTO.java

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

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

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;
    import java.util.List;

    /**
     * DTO: Update Engineering Request
     *
     * @author yyt
     * 2023/3/29
     */
    @Data
    public class UpdateEngineeringRequestDTO {

        /**
         * priority
         */
        @NotNull(message = "the priority must not be null")
        @Range(min = 0, max = 2, message = "the priority must in [0:Normal 1:Urgent 2:Critical]")
        private Integer priority;

        /**
         * ccemail，多个中间逗号隔开
         */
        @Length(max = 255, message = "the ccemail max length is 255")
        private String ccemail;

        /**
         * Contact Info
         */
        @NotBlank(message = "the contactInfo must not be blank")
        @Length(max = 255, message = "the contactInfo max length is 255")
        private String contactInfo;

        /**
         * Comments
         */
        private String comments;

        /**
         * 附件
         */
        private List<String> attachments;

        /**
         * location id
         */
        @NotNull(message = "the locationId must not be null")
        private Integer locationId;

        /**
         * area id
         */
        @NotNull(message = "the areaId must not be null")
        private Integer areaId;

        /**
         * item id
         */
        @NotNull(message = "the itemId must not be null")
        private Integer itemId;

        /**
         * issue id
         */
        @NotNull(message = "the issueId must not be null")
        private Integer issueId;

    }