CommonClient.java
1.47 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
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);
}