Commit 238dffbb by zhengxj

finish 车系id on 20190306 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18204 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 0cd6ed38
...@@ -3,6 +3,7 @@ package com.glsx.common.feign.client; ...@@ -3,6 +3,7 @@ package com.glsx.common.feign.client;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.glsx.common.config.FeignConfig; import com.glsx.common.config.FeignConfig;
...@@ -55,7 +56,7 @@ public interface CarBrandClient { ...@@ -55,7 +56,7 @@ public interface CarBrandClient {
* *
*/ */
@RequestMapping(value="/carservice/publicservice/car/getBrandById", method=RequestMethod.GET) @RequestMapping(value="/carservice/publicservice/car/getBrandById", method=RequestMethod.GET)
public JSONObject getBrandById(Integer brandId); public JSONObject getBrandById(@RequestParam("brandId")Integer brandId);
/** /**
* *
...@@ -68,7 +69,7 @@ public interface CarBrandClient { ...@@ -68,7 +69,7 @@ public interface CarBrandClient {
* *
*/ */
@RequestMapping(value="/carservice/publicservice/car/getCarTypeById", method=RequestMethod.GET) @RequestMapping(value="/carservice/publicservice/car/getCarTypeById", method=RequestMethod.GET)
public JSONObject getCarTypeById(Integer carTypeId); public JSONObject getCarTypeById(@RequestParam("carTypeId")Integer carTypeId);
/** /**
* *
...@@ -81,6 +82,6 @@ public interface CarBrandClient { ...@@ -81,6 +82,6 @@ public interface CarBrandClient {
* *
*/ */
@RequestMapping(value="/carservice/publicservice/car/getSeriesById", method=RequestMethod.GET) @RequestMapping(value="/carservice/publicservice/car/getSeriesById", method=RequestMethod.GET)
public JSONObject getSeriesById(Integer serId); public JSONObject getSeriesById(@RequestParam("serId")Integer serId);
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!