From 71a4444510d9067654705f0c5803d5f12a21a092 Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期二, 11 十一月 2025 09:17:34 +0800
Subject: [PATCH] 添加流程卡进度接口信息

---
 north-glass-erp/src/main/java/com/example/erp/controller/userInfo/RoleController.java |   23 +++++++++++++++++++----
 1 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/userInfo/RoleController.java b/north-glass-erp/src/main/java/com/example/erp/controller/userInfo/RoleController.java
index 30e9443..0d2ec39 100644
--- a/north-glass-erp/src/main/java/com/example/erp/controller/userInfo/RoleController.java
+++ b/north-glass-erp/src/main/java/com/example/erp/controller/userInfo/RoleController.java
@@ -1,13 +1,16 @@
 package com.example.erp.controller.userInfo;
 
+import cn.dev33.satoken.annotation.SaCheckPermission;
 import com.example.erp.common.Result;
+import com.example.erp.entity.userInfo.Role;
 import com.example.erp.service.userInfo.RoleService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 @RestController
+@Api(value="瑙掕壊controller",tags={"瑙掕壊鎿嶄綔鎺ュ彛"})
 @RequestMapping("/role")
 public class RoleController {
     private final RoleService roleService;
@@ -16,8 +19,20 @@
         this.roleService = roleService;
     }
 
+
+    @ApiOperation("鏌ヨ鎵�鏈夎鑹�")
+    @SaCheckPermission("roleList.search")
     @GetMapping("/findAll")
     public Result findAll(){
-        return Result.seccess(roleService.findAll());
+        return Result.success(roleService.findAll());
+    }
+
+
+    @ApiOperation("鏂板瑙掕壊")
+    @SaCheckPermission("roleList.add")
+    @PostMapping("/add")
+    public Result add(@RequestBody Role role){
+        return Result.success(roleService.add(role));
+
     }
 }

--
Gitblit v1.8.0