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

    /**
     *
     * @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);
}