package com.sckw.report.service.param;

import com.sckw.core.model.page.PageRequest;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

/**
 * @desc: 合同关联订单列表请求参数
 * @author: yzc
 * @date: 2023-07-27 16:48
 */
@Getter
@Setter
@ToString
public class TradeOrderContractParam extends PageRequest {

    @NotBlank(message = "合同ids不能为空")
    private String contractIds;

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

}
