
package com.tmerclub.cloud.api.order.feign;

import com.tmerclub.cloud.api.order.bo.EsOrderInvoiceBO;
import com.tmerclub.cloud.common.response.ServerResponseEntity;

import java.util.List;

/**
 * @author tmerclub
 * @date 2020/11/23
 */
public interface OrderInvoiceFeignClient {

    /**
     * 如果订单没有被取消的话，获取订单金额，否之会获取失败
     *
     * @param orderInvoiceId 订单发票id
     * @return 订单发票数据
     */
    ServerResponseEntity<EsOrderInvoiceBO> getEsOrderInvoice(Long orderInvoiceId);

    /**
     * 根据订单id获取订单发票的es数据
     * @param orderId
     * @return
     */
    ServerResponseEntity<List<EsOrderInvoiceBO>> listEsOrderInvoiceByOrderId(Long orderId);
}
