diff --git a/fjrcloud-module-community/src/main/java/com/fjrcloud/community/module/community/controller/admin/post/CommunityPostController.java b/fjrcloud-module-community/src/main/java/com/fjrcloud/community/module/community/controller/admin/post/CommunityPostController.java index 2002d0b..bf7ce5f 100644 --- a/fjrcloud-module-community/src/main/java/com/fjrcloud/community/module/community/controller/admin/post/CommunityPostController.java +++ b/fjrcloud-module-community/src/main/java/com/fjrcloud/community/module/community/controller/admin/post/CommunityPostController.java @@ -50,14 +50,14 @@ public class CommunityPostController { @PostMapping("/create") @Operation(summary = "创建社区动态") - @PreAuthorize("@ss.hasPermission('community:community-post:create')") + @PreAuthorize("@ss.hasPermission('community:post:create')") public CommonResult createCommunityPost(@Valid @RequestBody CommunityPostSaveReqVO createReqVO) { return success(communityPostService.createCommunityPost(createReqVO)); } @PutMapping("/update") @Operation(summary = "更新社区动态") - @PreAuthorize("@ss.hasPermission('community:community-post:update')") + @PreAuthorize("@ss.hasPermission('community:post:update')") public CommonResult updateCommunityPost(@Valid @RequestBody CommunityPostSaveReqVO updateReqVO) { communityPostService.updateCommunityPost(updateReqVO); return success(true); @@ -66,7 +66,7 @@ public class CommunityPostController { @DeleteMapping("/delete") @Operation(summary = "删除社区动态") @Parameter(name = "id", description = "编号", required = true) - @PreAuthorize("@ss.hasPermission('community:community-post:delete')") + @PreAuthorize("@ss.hasPermission('community:post:delete')") public CommonResult deleteCommunityPost(@RequestParam("id") Long id) { communityPostService.deleteCommunityPost(id); return success(true); @@ -75,7 +75,7 @@ public class CommunityPostController { @DeleteMapping("/delete-list") @Parameter(name = "ids", description = "编号", required = true) @Operation(summary = "批量删除社区动态") - @PreAuthorize("@ss.hasPermission('community:community-post:delete')") + @PreAuthorize("@ss.hasPermission('community:post:delete')") public CommonResult deleteCommunityPostList(@RequestParam("ids") List ids) { communityPostService.deleteCommunityPostListByIds(ids); return success(true); @@ -84,7 +84,7 @@ public class CommunityPostController { @GetMapping("/get") @Operation(summary = "获得社区动态") @Parameter(name = "id", description = "编号", required = true, example = "1024") - @PreAuthorize("@ss.hasPermission('community:community-post:query')") + @PreAuthorize("@ss.hasPermission('community:post:query')") public CommonResult getCommunityPost(@RequestParam("id") Long id) { CommunityPostDO post = communityPostService.getCommunityPost(id); CommunityPostRespVO respVO = BeanUtils.toBean(post, CommunityPostRespVO.class); @@ -109,7 +109,7 @@ public class CommunityPostController { @GetMapping("/page") @Operation(summary = "获得社区动态分页") - @PreAuthorize("@ss.hasPermission('community:community-post:query')") + @PreAuthorize("@ss.hasPermission('community:post:query')") public CommonResult> getCommunityPostPage(@Valid CommunityPostPageReqVO pageReqVO) { PageResult pageResult = communityPostService.getCommunityPostPage(pageReqVO); PageResult respVOPageResult = BeanUtils.toBean(pageResult, CommunityPostRespVO.class); @@ -139,7 +139,7 @@ public class CommunityPostController { @PutMapping("/publish") @Operation(summary = "发布动态") @Parameter(name = "id", description = "编号", required = true) - @PreAuthorize("@ss.hasPermission('community:community-post:publish')") + @PreAuthorize("@ss.hasPermission('community:post:publish')") public CommonResult publishCommunityPost(@RequestParam("id") Long id) { communityPostService.publishCommunityPost(id); return success(true); @@ -148,7 +148,7 @@ public class CommunityPostController { @PutMapping("/offline") @Operation(summary = "下线动态") @Parameter(name = "id", description = "编号", required = true) - @PreAuthorize("@ss.hasPermission('community:community-post:offline')") + @PreAuthorize("@ss.hasPermission('community:post:offline')") public CommonResult offlineCommunityPost(@RequestParam("id") Long id) { communityPostService.offlineCommunityPost(id); return success(true); @@ -156,7 +156,7 @@ public class CommunityPostController { @GetMapping("/export-excel") @Operation(summary = "导出社区动态 Excel") - @PreAuthorize("@ss.hasPermission('community:community-post:export')") + @PreAuthorize("@ss.hasPermission('community:post:export')") @ApiAccessLog(operateType = EXPORT) public void exportCommunityPostExcel(@Valid CommunityPostPageReqVO pageReqVO, HttpServletResponse response) throws IOException {