From 8d913e5594f45ca2a4ce656ea9feb99ffe715913 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 29 十一月 2024 18:44:58 +0800
Subject: [PATCH] 代码提交
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java
index e456f85..c9aa093 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java
@@ -38,7 +38,7 @@
/**
* 鑾峰彇宀椾綅鍒楄〃
*/
- @PreAuthorize("@ss.hasPermi('system:post:list')")
+ //@PreAuthorize("@ss.hasPermi('system:post:list')")
@GetMapping("/list")
public TableDataInfo list(SysPost post)
{
@@ -48,7 +48,7 @@
}
@Log(title = "宀椾綅绠$悊", businessType = BusinessType.EXPORT)
- @PreAuthorize("@ss.hasPermi('system:post:export')")
+ //@PreAuthorize("@ss.hasPermi('system:post:export')")
@PostMapping("/export")
public void export(HttpServletResponse response, SysPost post)
{
@@ -60,7 +60,7 @@
/**
* 鏍规嵁宀椾綅缂栧彿鑾峰彇璇︾粏淇℃伅
*/
- @PreAuthorize("@ss.hasPermi('system:post:query')")
+ //@PreAuthorize("@ss.hasPermi('system:post:query')")
@GetMapping(value = "/{postId}")
public AjaxResult getInfo(@PathVariable Long postId)
{
@@ -70,9 +70,9 @@
/**
* 鏂板宀椾綅
*/
- @PreAuthorize("@ss.hasPermi('system:post:add')")
+ //@PreAuthorize("@ss.hasPermi('system:post:add')")
@Log(title = "宀椾綅绠$悊", businessType = BusinessType.INSERT)
- @PostMapping
+ @PostMapping("/add")
public AjaxResult add(@Validated @RequestBody SysPost post)
{
if (UserConstants.NOT_UNIQUE.equals(postService.checkPostNameUnique(post)))
@@ -90,7 +90,7 @@
/**
* 淇敼宀椾綅
*/
- @PreAuthorize("@ss.hasPermi('system:post:edit')")
+ //@PreAuthorize("@ss.hasPermi('system:post:edit')")
@Log(title = "宀椾綅绠$悊", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
public AjaxResult edit(@Validated @RequestBody SysPost post)
@@ -110,7 +110,7 @@
/**
* 鍒犻櫎宀椾綅
*/
- @PreAuthorize("@ss.hasPermi('system:post:remove')")
+ //@PreAuthorize("@ss.hasPermi('system:post:remove')")
@Log(title = "宀椾綅绠$悊", businessType = BusinessType.DELETE)
@GetMapping("/remove/{postIds}")
public AjaxResult remove(@PathVariable Long[] postIds)
--
Gitblit v1.9.3