package com.sckw.contract.api.model.dto.res;

import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author czh
 * @desc 贸易合同和物流合同公共信息
 * @date 2023/7/19
 */
@Data
public class ContractLogisticsAndTradeOrderResDto implements Serializable {

    @Serial
    private static final long serialVersionUID = 2656035411576510101L;

    /**
     * 贸易合同id
     */
    private Long id;

    /**
     * 贸易合同名
     */
    private String contactName;

    /**
     * 贸易合同号
     */
    private String contractNo;

    List<ContractLogisticsOrder> logisticsContracts;

    @Data
    public static class ContractLogisticsOrder implements Serializable{
        @Serial
        private static final long serialVersionUID = 3434430919666054438L;
        /**
         * 物流合同id
         */
        private Long logisticsContractId;

        /**
         * 物流合同名
         */
        private String logisticsContractName;

        /**
         * 物流合同号
         */
        private String logisticsContractNo;
    }
}
