| | |
| | | @ResponseBody |
| | | @PostMapping("/addGoods") |
| | | @ApiOperation(value = "添加", tags = {"后台-商品管理"}) |
| | | public AjaxResult<TGoods> addGoods(TGoods dto) { |
| | | public AjaxResult<TGoods> addGoods(@RequestBody TGoods dto) { |
| | | goodsClient.addGoods(dto); |
| | | return AjaxResult.success("添加成功"); |
| | | } |
| | |
| | | @ResponseBody |
| | | @PostMapping("/updateGoods") |
| | | @ApiOperation(value = "修改", tags = {"后台-商品管理"}) |
| | | public AjaxResult<TGoods> updateGoods( TGoods dto) { |
| | | public AjaxResult<TGoods> updateGoods(@RequestBody TGoods dto) { |
| | | goodsClient.updateGoods(dto); |
| | | return AjaxResult.success("修改成功"); |
| | | } |