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

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import java.util.List;

/**
 * @desc: 采购订单请求参数
 * @author: yzc
 * @date: 2023-07-07 14:19
 */
@Getter
@Setter
@ToString
public class TradeOrderAuditParam {
    @NotNull(message = "贸易订单id不能为空")
    @Schema(description = "贸易订单id")
    private Long id;

    @NotNull(message = "商品id不能为空")
    @Schema(description = "商品id")
    private Long goodsId;
    /**
     * 贸易合同
     */
    @NotNull(message = "贸易合同不能为空")
    @Schema(description = "贸易合同")
    private Long tradeContractId;
    /**
     * 备注
     */
    @Length(max = 200, message = "备注最多支持200字")
    @Schema(description = "备注")
    private String remark;

    @NotNull(message = "状态不能为空")
    @Schema(description = "审核状态 1-通过 2-拒绝")
    private Integer status;

    @Schema(description = "物流合同信息")
    private List<LogisticsEntDto> logisticsContractList;
}
