package com.sckw.order.model.vo.req;

import jakarta.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

/**
 * @desc: 批量删除请求参数
 * @author: yzc
 * @date: 2023-07-18 15:05
 */
@Getter
@Setter
@ToString
public class BatchDeleteParam {

    @NotBlank(message = "订单ids不能为空")
    private String ids;

    @NotNull(message = "订单类型不能为空")
    @Range(min = 1, max = 2, message = "非法订单类型")
    private Integer orderType;
}
