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