OrderClient.java
1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.glsx.common.feign.client;
import com.alibaba.fastjson.JSONObject;
import com.glsx.common.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
/**
* @author duanht
* @version 1.0.0
* @Title OrderClient
* @Package com.glsx.common.feign.client
* @Description ${todo}
* @date 2019/3/11 16:33
*/
@FeignClient(name="car-service-ordercenter", configuration=FeignConfig.class)
public interface OrderClient {
/**
*
* @author duanht
* @Title: getOrderByUserId
* @Description: TODO 根据用户id查询订单信息(商户,服务商,技工)
* @param userId
* @return ResultObject
*
*/
@RequestMapping(value="/carservice/ordercenter/order/getOrderByUserId", method= RequestMethod.GET)
public JSONObject getOrderByUserId(@RequestParam("userId")Integer userId);
@RequestMapping(value="/carservice/ordercenter/order/updateOrderOpenId", method= RequestMethod.GET)
public JSONObject updateOrderOpenId(@RequestParam("id")Integer id,@RequestParam("shopId")Integer shopId);
}