|
@@ -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;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|