OrderClient.java 2.04 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;

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

        /**
         *
         *@author xiaoyj
         * @Title: updateOrderOpenId
         * @Description: TODO 根据id修改商户id
         * @param id,shopId
         * @return ResultObject
         */
        @RequestMapping(value="/carservice/ordercenter/order/updateOrdersBindShop", method= RequestMethod.GET)
        public JSONObject updateOrdersBindShop(@RequestParam("id")Integer id,@RequestParam("shopId")Integer shopId,@RequestParam("serviceType")Integer serviceType);

        /**
         *
         *@author xiaoyj
         * @Title: updateOrderOpenId
         * @Description: TODO 查询超过30分钟,服务商未指定或技工未接单的订单
         * @param
         * @return ResultObject
         */
        @RequestMapping(value="/carservice/ordercenter/order/getOrderOnHand", method= RequestMethod.GET)
        public JSONObject getOrderOnHand();


}