From d60d905750e86e7dbcbf932ee2aa7bb835f879bc Mon Sep 17 00:00:00 2001
From: zepengdev <lzpsmith@outlook.com>
Date: Wed, 04 Jun 2025 08:24:32 +0800
Subject: [PATCH] 1、PlatformCategory继承BaseEntity 2、调整PlatformCategoryView字段 3、完成queryPlatformCategory接口开发

---
 oying-system/src/main/java/com/oying/modules/pc/category/rest/PlatformCategoryAdminController.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/oying-system/src/main/java/com/oying/modules/pc/category/rest/PlatformCategoryAdminController.java b/oying-system/src/main/java/com/oying/modules/pc/category/rest/PlatformCategoryAdminController.java
index fd2668e..3dba34a 100644
--- a/oying-system/src/main/java/com/oying/modules/pc/category/rest/PlatformCategoryAdminController.java
+++ b/oying-system/src/main/java/com/oying/modules/pc/category/rest/PlatformCategoryAdminController.java
@@ -9,7 +9,7 @@
 import com.oying.modules.pc.category.domain.dto.PlatformCategoryUpdateDto;
 import com.oying.modules.pc.category.domain.dto.PlatformCategoryUpdateRequest;
 import com.oying.modules.pc.category.service.PlatformCategoryService;
-import com.oying.modules.pc.category.view.PlatformCategoryView;
+import com.oying.modules.pc.category.view.PlatformCategoryAdminView;
 import com.oying.utils.R;
 import com.oying.utils.PageResult;
 import io.swagger.annotations.Api;
@@ -41,14 +41,14 @@
     private final PlatformCategoryService categoryService;
     private final PlatformCategoryViewAssembler assembler;
 
-    @GetMapping
+    @GetMapping(value = "/list")
     @ApiOperation("查询平台类目(支持分页)")
-    @PreAuthorize("@el.check('admin:platformCategory:list')")
+    //@PreAuthorize("@el.check('admin:platformCategory:list')")
     public ResponseEntity<?> queryPlatformCategory(PlatformCategoryQueryCriteria criteria) {
         Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize());
         PageResult<PlatformCategory> pageResult = categoryService.queryAll(criteria, page);
-        List<PlatformCategoryView> responseList = Optional.ofNullable(pageResult.getContent()).orElse(new ArrayList<>()).stream().map(assembler::toPlatformCategoryResponse).collect(Collectors.toList());
-        PageResult<PlatformCategoryView> responsePageResult = new PageResult<>(responseList, pageResult.getTotalElements());
+        List<PlatformCategoryAdminView> responseList = Optional.ofNullable(pageResult.getContent()).orElse(new ArrayList<>()).stream().map(assembler::toPlatformCategoryResponse).collect(Collectors.toList());
+        PageResult<PlatformCategoryAdminView> responsePageResult = new PageResult<>(responseList, pageResult.getTotalElements());
         return ResponseEntity.ok(R.success(responsePageResult));
     }
 
@@ -60,7 +60,7 @@
         return ResponseEntity.status(HttpStatus.CREATED).build();
     }
 
-    @PutMapping("/{categoryId}")
+    @PutMapping(value = "/{categoryId}")
     @ApiOperation("修改平台类目")
     //@PreAuthorize("@el.check('admin:platformCategory:updateById')")
     public ResponseEntity<?> updateById(@PathVariable Long categoryId,

--
Gitblit v1.9.3