@FeignClient(name = "china-mobile-api",
url = "${url.cn.mobile}",
configuration = FeignConfig.class
)
@RequestMapping(value = "/order/v2",
consumes = {"application/x-www-form-urlencoded;charset=UTF-8"},
produces = {"*;charset=UTF-8"})
public interface IOrderService{
@PostMapping("/get_order_info")
String getOrderInfo(@RequestBody String param);
@PostMapping("/order/is_exist")
String checkExist(@RequestBody String orderId);
}
譬如像上面的代码中,调用http接口后返回值有点复杂,我想在IOrderService类里面对响应就做处理,然后返回简单的值给外部调用,而不是把结果让外部调用去解析。有什么办法?