Browse Source

头像上传

5 years ago
parent
commit
a95538f29e

+ 13 - 0
pcbms/src/main/java/com/hssx/pcbms/controller/PermissionController.java

@@ -49,5 +49,18 @@ public class PermissionController {
         HttpRespMsg msg = permissionService.del(permission);
         return msg;
     }
+
+    /**
+     * 权限列表
+     * @return
+     */
+    @ApiOperation(value = "权限列表", notes = "权限列表方法")
+    @RequestMapping("/list")
+    @ResponseBody
+    public HttpRespMsg list() {
+        HttpRespMsg msg = new HttpRespMsg();
+        msg.data =  permissionService.list();
+        return msg;
+    }
 }
 

+ 27 - 0
pcbms/src/main/java/com/hssx/pcbms/controller/RoleController.java

@@ -49,5 +49,32 @@ public class RoleController {
         return msg;
     }
 
+    /**
+     * 角色列表
+     * @return
+     */
+    @ApiOperation(value = "角色列表", notes = "角色列表方法")
+    @RequestMapping("/list")
+    @ResponseBody
+    public HttpRespMsg list(Role role) {
+        HttpRespMsg msg = new HttpRespMsg();
+        msg.data = roleService.list();
+        return msg;
+    }
+//!!!!!!!!没写完
+    /**
+     * 角色分配权限
+     * id:角色id
+     * @return
+     */
+    @ApiOperation(value = "角色分配权限", notes = "角色分配权限方法")
+    @RequestMapping("/handOutpermissions")
+    @ResponseBody
+    public HttpRespMsg handOutpermissions(Role role) {
+        HttpRespMsg msg = new HttpRespMsg();
+        msg.data = roleService.list();
+        return msg;
+    }
+
 }