package cn.freemud.service.thirdparty;

import cn.freemud.entities.dto.MCCafeDeliveryBaseResponse;
import cn.freemud.entities.dto.delivery.*;
import cn.freemud.entities.dto.delivery.QueryDeliveryAmountRequestDto;
import cn.freemud.entities.dto.delivery.QueryDeliveryAmountResponseDto;
import cn.freemud.entities.vo.CreateDeliveryVo;
import com.freemud.application.sdk.api.deliverycenter.response.CreateDeliveryOrderResponseDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "DELIVERYCENTER", url = "${delivery.center.feignUrl}")
public interface DeliveryFeiginClient {

    @PostMapping("/deliveryLogisticsAmount/queryDeliveryAmount")
    QueryDeliveryAmountResponseDto queryDeliveryAmount(@RequestBody QueryDeliveryAmountRequestDto request);

    @PostMapping("/delivery/orderRemind")
    QueryDeliveryAmountResponseDto orderRemind(@RequestBody OrderRemindRequestDto request);

    @PostMapping("/delivery/listFreeRider")
    MCCafeDeliveryBaseResponse<ResRiderTrackDto> listFreeRider(@RequestBody QueryLocusRiderTrackDto request);

    @PostMapping("/delivery/create")
    CreateDeliveryOrderResponseDto deliveryOrderAdd(@RequestBody CreateDeliveryVo request);

    @PostMapping("/delivery/getDeliveryStatusAndRiderPosition")
    DeliveryBaseResponse<DeliveryStatusAndRiderPositionDto> getDeliveryStatusAndRiderPosition(@RequestBody QueryDeliveryBaseRequest queryDeliveryBaseRequest);

    @PostMapping("/delivery/getThirdDeliveryFlag")
    DeliveryBaseResponse<GetDeliveryFlagResponseDto> getThirdDeliveryFlag(@RequestBody GetDeliveryFlagRequest getDeliveryFlagRequest);

    @PostMapping("/delivery/queryDeliveryTemplate")
    QueryDeliveryTemplateResponse queryDeliveryTemplate(@RequestBody QueryDeliveryTemplateRequest queryDeliveryTemplateRequest);

    @PostMapping("/delivery/isFreightRefundSupported")
    QueryFreightRefundSupportedResponse isFreightRefundSupported(@RequestBody QueryFreightRefundSupportedVo queryDeliveryTemplateVo);


}
