# OperateDTO.java

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

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

    import jakarta.validation.constraints.NotNull;

    /**
     * 操作DTO
     *
     * @author lichen
     * @date 2024/1/29
     */
    @Data
    public class OperateDTO {

        /**
         * 操作类型
         */
        @Range(min = 8, max = 10, message = "The type must between [8:cancellation 9:archived 10:unarchived]")
        @NotNull(message = "The type cannot be null")
        private Integer type;

        /**
         * 意见
         */
        @Length(max = 300, message = "The opinion max length is 300")
        private String opinion;

    }