CommonClient.java
3.35 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
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;
/**
*
* @Title CarBrandClient.java
* @Package com.glsx.common.feign.client
* @Description TODO 通用接口feign
* @author zhanghj
* @date 2019年2月16日 下午3:12:54
* @version 1.0.0
*/
@FeignClient(name="car-service-publicservice", configuration=FeignConfig.class)
public interface CommonClient {
/**
*
* @author zhanghj
* @Title: getCarbrandList
* @Description: TODO 上传二维码
* @return
* JSONObject
*
*/
@RequestMapping(value="/carservice/publicservice/common/uploadQRImage", method= RequestMethod.POST)
public JSONObject uploadQRImage(@RequestBody byte[] bytes);
/**
*
* @author duanht
* @Title: checkVerifyCode
* @Description: TODO 验证码是否正确
* @return
* JSONObject
*
*/
@RequestMapping(value="/carservice/publicservice/common/checkVerifyCode", method= RequestMethod.GET)
public JSONObject checkVerifyCode(@RequestParam("phone")String phone,@RequestParam("verifyCode")String verifyCode);
/**
*
* @author duanht
* @Title: sendIndentCheckPass
* @Description: TODO 发送订货单审核通过短信
* @return
* JSONObject
*
*/
@RequestMapping(value="/carservice/publicservice/common/sendIndentCheckPassSms", method= RequestMethod.GET)
public JSONObject sendIndentCheckPassSms(@RequestParam("phone")String phone,@RequestParam("indentNo")String indentNo);
/**
*
* @author duanht
* @Title: sendDeviceSms
* @Description: TODO 发送订单已发货短信
* @return
* JSONObject
*
*/
@RequestMapping(value="/carservice/publicservice/common/sendDeviceSms", method= RequestMethod.GET)
public JSONObject sendDeviceSms(@RequestParam("phone")String phone,@RequestParam("indentNo")String indentNo);
/**
*
* @author zhanghj
* @Title: sendSmsToService
* @Description: TODO 向对应服务商发送新增订货单短信
* @param mechanicName
* @param phone
* @param indentNo
* @return
* JSONObject
*
*/
@RequestMapping(value="/carservice/publicservice/common/sendIndentSmsToService", method= RequestMethod.GET)
public JSONObject sendIndentSmsToService(@RequestParam("mechanicName")String mechanicName, @RequestParam("phone") String phone,
@RequestParam("indentNo")String indentNo);
/**
*
* @author zhanghj
* @Title: sendCancelIndentSms
* @Description: TODO 取消订货单短信通知
* @param operator
* @param phone
* @param indentNo
* @return
* JSONObject
*
*/
@RequestMapping(value="/carservice/publicservice/common/sendCancelIndentSms", method= RequestMethod.GET)
public JSONObject sendCancelIndentSms(@RequestParam("operator")String operator,@RequestParam("phone") String phone,
@RequestParam("indentNo")String indentNo);
}