package com.crossoverJie.order.feign.api;

import com.crossoverJie.order.api.OrderService;
import com.crossoverJie.order.feign.config.OrderConfig;
import com.crossoverJie.order.feign.fallback.OrderServiceFallbackFactory;
import com.crossoverJie.order.vo.req.OrderNoReqVO;
import com.crossoverJie.order.vo.res.OrderNoResVO;
import com.crossoverJie.sbcorder.common.res.BaseResponse;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Function:
 *
 * @author crossoverJie
 *         Date: 2017/7/16 19:00
 * @since JDK 1.8
 */
@RequestMapping(value="/orderService")
@FeignClient(name="sbc-order",
        fallbackFactory = OrderServiceFallbackFactory.class,
        // FIXME: 2017/9/4 如果配置了fallback 那么fallbackFactory将会无效
        //fallback = OrderServiceFallBack.class,
        configuration = OrderConfig.class)
@RibbonClient
public interface OrderServiceClient extends OrderService{


    @ApiOperation("获取订单号")
    @RequestMapping(value = "/getOrderNo", method = RequestMethod.POST)
    BaseResponse<OrderNoResVO> getOrderNo(@RequestBody OrderNoReqVO orderNoReq) ;
}

@@ -988,16 +988,17 @@
 /4 %E5%A6%82%E6%9E%9C%E9%85%8D%E7%BD%AE%E4%BA%86
+ 
 fallback
@@ -1000,16 +1000,17 @@
 lback %E9%82%A3%E4%B9%88
+ 
 fallback
@@ -1016,16 +1016,17 @@
 kFactory
+ 
 %E5%B0%86%E4%BC%9A%E6%97%A0%E6%95%88%0A   
@@ -1188,16 +1188,99 @@
 vice%7B%0A%0A%0A
+    /**%0A     * %E8%8E%B7%E5%8F%96%E8%AE%A2%E5%8D%95%E5%8F%B7%0A     * @param orderNoReq%0A     * @return%0A     */%0A    @Override%0A
     @Api

改进代码的结构/格式