package cn.freemud.service.mccafe.thirdparty;

import cn.freemud.entities.dto.BaseResponseDto;
import cn.freemud.entities.dto.CancelDeliveryRequest;
import cn.freemud.entities.dto.CreateOrderRequestDto;
import cn.freemud.entities.dto.delivery.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

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

    @PostMapping("/delivery/cancel")
    CancelDeliveryResponseDto cancelRequest(@RequestBody CancelDeliveryRequest request);

}
