Commit 1532953a by jx-art

测试 返回值接受 以及查询时拼接参数

parent 2d5a111c
......@@ -16,6 +16,6 @@ import org.springframework.web.bind.annotation.RequestParam;
public interface GoodsRpcService {
@GetMapping(value = "/xhr/item/basic/sqe.json")
AjaxResponse<String> getDetail(@RequestParam("itemId") Integer itemId);
String getDetail(@RequestParam("itemId") Integer itemId);
}
......@@ -102,8 +102,8 @@ public class ChangeConfigController {
@Autowired
private GoodsRpcService goodsRpcService;
@GetMapping("/test")
public AjaxResult test(){
return AjaxResult.of(1111,"调用成功",goodsRpcService.getDetail(32));
public AjaxResult test(@RequestParam("id")Integer id){
return AjaxResult.of(1111,"调用成功",goodsRpcService.getDetail(id));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment