From b05715c83c4e04165a6682f2049e68ca606f656c Mon Sep 17 00:00:00 2001 From: hjl <1657978663@qq.com> Date: 星期三, 26 六月 2024 10:38:53 +0800 Subject: [PATCH] fix: 学习端bug --- ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TGoodsController.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TGoodsController.java b/ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TGoodsController.java index 37fbe1f..d5b76ef 100644 --- a/ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TGoodsController.java +++ b/ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TGoodsController.java @@ -39,7 +39,7 @@ @Autowired private GoodsClient goodsClient; @ResponseBody - @GetMapping("/listType") + @PostMapping("/listType") @ApiOperation(value = "列表查询", tags = {"后台-商品类型管理"}) public AjaxResult<PageInfo<TGoodsType>> listType(String name, Integer pageNumber, Integer pageSize){ @@ -78,9 +78,9 @@ return AjaxResult.success("删除成功"); } @ResponseBody - @GetMapping("/listAll") + @PostMapping("/listAll") @ApiOperation(value = "列表查询", tags = {"后台-商品管理"}) - public AjaxResult<PageInfo<TGoods>> listAll(String name, Integer pageNumber, Integer pageSize){ + public AjaxResult<PageInfo<TGoods>> listAll( String name,Integer pageNumber,Integer pageSize){ GoodsTypeQuery goodsTypeQuery = new GoodsTypeQuery(); goodsTypeQuery.setName(name); goodsTypeQuery.setPageNumber(pageNumber); @@ -101,7 +101,7 @@ @ResponseBody @PostMapping("/addGoods") @ApiOperation(value = "添加", tags = {"后台-商品管理"}) - public AjaxResult<TGoods> addGoods(@RequestBody TGoods dto) { + public AjaxResult<TGoods> addGoods(TGoods dto) { goodsClient.addGoods(dto); return AjaxResult.success("添加成功"); } @@ -117,7 +117,7 @@ @ResponseBody @PostMapping("/updateGoods") @ApiOperation(value = "修改", tags = {"后台-商品管理"}) - public AjaxResult<TGoods> updateGoods(@RequestBody TGoods dto) { + public AjaxResult<TGoods> updateGoods( TGoods dto) { goodsClient.updateGoods(dto); return AjaxResult.success("修改成功"); } -- Gitblit v1.7.1