浏览代码

供销社控制器 权限 地址

wangzhe 1 年之前
父节点
当前提交
11bbba0758

+ 7 - 7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/controller/CooperativeController.java

@@ -29,7 +29,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
  * @date 2024-03-01
  */
 @RestController
-@RequestMapping("/system/cooperative")
+@RequestMapping("/high/server/cooperative")
 public class CooperativeController extends BaseController
 {
     @Autowired
@@ -38,7 +38,7 @@ public class CooperativeController extends BaseController
     /**
      * 查询供销合作社列表
      */
-    @PreAuthorize("@ss.hasPermi('system:cooperative:list')")
+//    @PreAuthorize("@ss.hasPermi('highfrequency:cooperative:list')")
     @GetMapping("/list")
     public TableDataInfo list(Cooperative cooperative)
     {
@@ -50,7 +50,7 @@ public class CooperativeController extends BaseController
     /**
      * 导出供销合作社列表
      */
-    @PreAuthorize("@ss.hasPermi('system:cooperative:export')")
+    @PreAuthorize("@ss.hasPermi('highfrequency:cooperative:export')")
     @Log(title = "供销合作社", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
     public void export(HttpServletResponse response, Cooperative cooperative)
@@ -63,7 +63,7 @@ public class CooperativeController extends BaseController
     /**
      * 获取供销合作社详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:cooperative:query')")
+//    @PreAuthorize("@ss.hasPermi('highfrequency:cooperative:query')")
     @GetMapping(value = "/{id}")
     public AjaxResult getInfo(@PathVariable("id") Long id)
     {
@@ -73,7 +73,7 @@ public class CooperativeController extends BaseController
     /**
      * 新增供销合作社
      */
-    @PreAuthorize("@ss.hasPermi('system:cooperative:add')")
+    @PreAuthorize("@ss.hasPermi('highfrequency:cooperative:add')")
     @Log(title = "供销合作社", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody Cooperative cooperative)
@@ -84,7 +84,7 @@ public class CooperativeController extends BaseController
     /**
      * 修改供销合作社
      */
-    @PreAuthorize("@ss.hasPermi('system:cooperative:edit')")
+    @PreAuthorize("@ss.hasPermi('highfrequency:cooperative:edit')")
     @Log(title = "供销合作社", businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody Cooperative cooperative)
@@ -95,7 +95,7 @@ public class CooperativeController extends BaseController
     /**
      * 删除供销合作社
      */
-    @PreAuthorize("@ss.hasPermi('system:cooperative:remove')")
+    @PreAuthorize("@ss.hasPermi('highfrequency:cooperative:remove')")
     @Log(title = "供销合作社", businessType = BusinessType.DELETE)
 	@DeleteMapping("/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids)