xuhy
2024-09-06 f2dff53d76a7e9a23e6a2ecfed58ce978dc41442
ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TGoodsController.java
@@ -318,5 +318,17 @@
        TGoods goods = goodsService.getById(id);
        return R.ok(goods);
    }
    /**
     * 修改商品
     * @param goods
     * @return
     */
    @PostMapping("/updateGoods")
    public R updateGoods(@RequestBody TGoods goods){
        goodsService.updateById(goods);
        return R.ok();
    }
}