From c8b658df0004f9698f20d7017703e0901fcf8b15 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 26 Jul 2023 13:00:57 +0800
Subject: [PATCH] 短信认证
---
src/main/java/cc/mrbird/febs/mall/controller/ApiMallGoodsCategoryController.java | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/main/java/cc/mrbird/febs/mall/controller/ApiMallGoodsCategoryController.java b/src/main/java/cc/mrbird/febs/mall/controller/ApiMallGoodsCategoryController.java
index a7f6555..5e58edf 100644
--- a/src/main/java/cc/mrbird/febs/mall/controller/ApiMallGoodsCategoryController.java
+++ b/src/main/java/cc/mrbird/febs/mall/controller/ApiMallGoodsCategoryController.java
@@ -9,10 +9,7 @@
import io.swagger.annotations.ApiResponses;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
import java.util.List;
@@ -22,6 +19,7 @@
**/
@Slf4j
@RestController
+@CrossOrigin
@RequiredArgsConstructor
@RequestMapping(value = "/api/category")
@Api(value = "ApiMallGoodsCategoryController", tags = "商品分类参数接收类")
@@ -29,7 +27,7 @@
private final IApiMallGoodsCategoryService mallGoodsCategoryService;
- @ApiOperation(value = "findAllCategoryList", notes = "获取商品分类列表")
+ @ApiOperation(value = "获取商品分类列表", notes = "获取商品分类列表")
@ApiResponses({
@ApiResponse(code = 200, message = "success", response = MallGoodsCategoryVo.class)
})
@@ -38,13 +36,13 @@
return new FebsResponse().success().data(mallGoodsCategoryService.findAllCategoryList());
}
- @ApiOperation(value = "findChildCategoryListById", notes = "获取父分类下分类")
+ @ApiOperation(value = "获取父分类下分类", notes = "获取父分类下分类")
@GetMapping(value = "/findChildCategoryListById/{id}")
public FebsResponse findChildCategoryListById(@PathVariable("id") Long id) {
return new FebsResponse().success().data(mallGoodsCategoryService.findChildCategoryListById(id));
}
- @ApiOperation(value = "findRecommendCategory", notes = "获取推荐分类")
+ @ApiOperation(value = "获取推荐分类", notes = "获取推荐分类")
@GetMapping(value = "/findRecommendCategory")
public FebsResponse findRecommendCategory() {
return new FebsResponse().success().data(mallGoodsCategoryService.findRecommendCategory());
--
Gitblit v1.9.1