parent
831e3eeaaf
commit
c0e453b6a5
@ -0,0 +1,20 @@
|
|||||||
|
package com.mashibing.serviceprice.remote;
|
||||||
|
|
||||||
|
import com.mashibing.internalcommon.dto.ResponseResult;
|
||||||
|
import com.mashibing.internalcommon.request.ForecastPriceDTO;
|
||||||
|
import com.mashibing.internalcommon.response.DirectionResponse;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMethod;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@FeignClient("service-map")
|
||||||
|
public interface ServiceMapClient {
|
||||||
|
|
||||||
|
@RequestMapping(method = RequestMethod.GET,value = "/direction/driving")
|
||||||
|
public ResponseResult<DirectionResponse> driving(@RequestBody ForecastPriceDTO forecastPriceDTO);
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue