From 01d6fa48a0de7a21988e89f71721b6b85e53b517 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期四, 06 三月 2025 16:33:53 +0800 Subject: [PATCH] 去掉资讯图片必填限制 --- ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtGoodsGroupPurchaseController.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtGoodsGroupPurchaseController.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtGoodsGroupPurchaseController.java index 3f9be24..af81a5d 100644 --- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtGoodsGroupPurchaseController.java +++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtGoodsGroupPurchaseController.java @@ -33,7 +33,7 @@ @RestController @RequiredArgsConstructor @RequestMapping("/mgt/goods-group-purchase") -@Api(value = "管理后台商品团购相关接口", tags = {"管理后台接口"}) +@Api(value = "管理后台商品团购相关接口", tags = {"管理后台-商品团购相关接口"}) public class MgtGoodsGroupPurchaseController { private final IGoodsGroupPurchaseService goodsGroupPurchaseService; @@ -47,7 +47,7 @@ @ApiOperation(value = "获取团购商品列表的分页数据", notes = "获取团购商品列表的分页数据") @PostMapping("/page") public R<PageDTO<GoodsGroupPurchaseVO>> getGoodsGroupPurchasePage( - GoodsGroupPurchaseQuery query) { + @Validated @RequestBody GoodsGroupPurchaseQuery query) { return R.ok(goodsGroupPurchaseService.getGoodsGroupPurchasePage(query)); } @@ -58,7 +58,7 @@ */ @ApiOperation(value = "添加/编辑 团购商品", notes = "添加/编辑 团购商品") @PostMapping("/save") - public R<Void> saveGoodsGroupPurchase(GoodsGroupPurchaseDTO dto) { + public R<Void> saveGoodsGroupPurchase(@Validated @RequestBody GoodsGroupPurchaseDTO dto) { goodsGroupPurchaseService.saveGoodsGroupPurchase(dto); return R.ok(); } -- Gitblit v1.7.1