diff --git a/pjcloud-supermarket/pjcloud-supermarket-biz/src/main/java/com/bsd/pjcloud/supermarket/controller/MallAppController.java b/pjcloud-supermarket/pjcloud-supermarket-biz/src/main/java/com/bsd/pjcloud/supermarket/controller/MallAppController.java index 898d8888e..677d0527f 100644 --- a/pjcloud-supermarket/pjcloud-supermarket-biz/src/main/java/com/bsd/pjcloud/supermarket/controller/MallAppController.java +++ b/pjcloud-supermarket/pjcloud-supermarket-biz/src/main/java/com/bsd/pjcloud/supermarket/controller/MallAppController.java @@ -537,7 +537,7 @@ public class MallAppController { * 商户创建分类 */ @PostMapping("/merchant/category/create") - @Operation(summary = "商户创建分类", description = "移动端商户创建分类") + @Operation(summary = "移动端创建商品分类", description = "移动创建商品分类") public R createCategory(@RequestBody MallCategoryEntity category) { try { Long merchantId = validateMerchant(); @@ -548,12 +548,12 @@ public class MallAppController { // 创建分类 boolean success = mallCategoryService.save(category); if (success) { - return R.ok("分类创建成功"); + return R.ok("商品分类创建成功"); } else { - return R.failed("分类创建失败"); + return R.failed("商品分类创建失败"); } } catch (Exception e) { - return R.failed("分类创建失败:" + e.getMessage()); + return R.failed("商品分类创建失败:" + e.getMessage()); } } @@ -561,7 +561,7 @@ public class MallAppController { * 商户更新分类 */ @PutMapping("/merchant/category/update") - @Operation(summary = "商户更新分类", description = "移动端商户更新分类") + @Operation(summary = "更新商品分类", description = "移动端更新商品分类") public R updateCategory(@RequestBody MallCategoryEntity category) { try { Long merchantId = validateMerchant(); @@ -589,7 +589,7 @@ public class MallAppController { * 商户删除分类 */ @DeleteMapping("/merchant/category/{id}") - @Operation(summary = "商户删除分类", description = "移动端商户删除自己的分类") + @Operation(summary = "删除商品分类", description = "移动端删除商户自己的商品分类") public R deleteCategory(@PathVariable("id") Long id) { try { Long merchantId = validateMerchant(); @@ -611,7 +611,7 @@ public class MallAppController { * 商户获取自己的分类列表 */ @GetMapping("/merchant/category/list") - @Operation(summary = "商户分类列表", description = "移动端商户获取自己的分类列表") + @Operation(summary = "商品分类列表", description = "移动端获取自己商品分类列表") public R> getMerchantCategoryList(@RequestParam(required = false) Long parentId) { try { Long merchantId = validateMerchant();