# EditRequestBy.java

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

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

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

    /**
     * 编辑adjustment数据的requestBy时，使用的dto
     *
     * @author lichen
     * @date 2023/5/26
     */
    @Data
    public class EditRequestBy {

        /**
         * adjustment数据的主键集合
         */
        @NotEmpty(message = "The ids cannot be empty")
        private List<Long> ids;

        /**
         * requestBy，用户主键id
         */
        @NotNull(message = "The requestBy cannot be null")
        private Integer requestBy;

        /**
         * 单据类型 1:Sales 2:Front Desk 3:Accounting
         */
        @NotNull(message = "the requestType must not be null")
        @Range(min = 1, max = 3, message = "the requestType must be 1:Sales 2:Front Desk 3:Accounting")
        private Integer requestType;

    }