# SaveCaseActionDTO.java

    package cloud.wconnect.finance.pojo.dto.chargeback;

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

    import jakarta.validation.constraints.NotNull;

    /**
     * DTO: Save Case Action
     *
     * @author yyt
     * 2023/9/1
     */
    @Data
    public class SaveCaseActionDTO {

        /**
         * 阶段 2:hotel operation，3:overdue
         */
        @NotNull(message = "the stage must not be null")
        @Range(min = 2, max = 3, message = "the stage must in [2:hotel operation，3:overdue]")
        private Integer stage;

        /**
         * Action选择(1:Accept，2:Dispute)
         */
        @NotNull(message = "the action must not be null")
        @Range(min = 1, max = 2, message = "the action must in [1:Accept，2:Dispute]")
        private Integer action;

        /**
         * 附件列表
         */
        @NotNull(message = "the attachments must not be null")
        @Length(max = 1500, message = "the attachments max length is 1500")
        private String attachments;

        /**
         * 备注说明
         */
        @NotNull(message = "the comment must not be null")
        @Length(max = 1000, message = "the comment max length is 1000")
        private String comment;

        /**
         * 生成黑名单（false：否，true：是）
         */
        public Boolean generateBlackList;

    }