更新api描述

This commit is contained in:
zjf committed 2025-09-10 17:09:31 +08:00
1 parent bb31380671
commit bd72213e69
1 file changed
+7 -7
@@ -537,7 +537,7 @@ public class MallAppController {
* 商户创建分类
*/
@PostMapping("/merchant/category/create")
@Operation(summary = "商户创建分类", description = "移动端商户创建分类")
@Operation(summary = "移动端创建商品分类", description = "移动创建商品分类")
public R<String> 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<String> 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<String> 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<List<MallCategoryEntity>> getMerchantCategoryList(@RequestParam(required = false) Long parentId) {
try {
Long merchantId = validateMerchant();