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.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

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

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

}
