1
1
package com .lmxdawn .admin .controller .admin .auth ;
2
2
3
3
import com .github .pagehelper .PageInfo ;
4
+ import com .lmxdawn .admin .annotation .AdminAuthRuleAnnotation ;
4
5
import com .lmxdawn .admin .entity .auth .AuthAdmin ;
5
6
import com .lmxdawn .admin .entity .auth .AuthRoleAdmin ;
6
7
import com .lmxdawn .admin .enums .ResultEnum ;
@@ -39,12 +40,13 @@ public class AuthAdminController {
39
40
/**
40
41
* 获取管理员列表
41
42
*/
43
+ @ AdminAuthRuleAnnotation ("/admin/auth/admin/index" )
42
44
@ GetMapping ("/admin/auth/admin/index" )
43
45
public ResultVO index (@ RequestParam (value = "page" ,defaultValue = "1" ) Integer page ,
44
46
@ RequestParam (value = "limit" ,defaultValue = "20" ) Integer limit ,
45
47
@ RequestParam (value = "status" , required = false ) Integer status ,
46
48
@ RequestParam (value = "username" , required = false ) String username ,
47
- @ RequestParam (value = "role_id " , required = false ) Long roleId ) {
49
+ @ RequestParam (value = "roleId " , required = false ) Long roleId ) {
48
50
49
51
Map <String , Object > map = new HashMap <>();
50
52
map .put ("status" , status );
@@ -91,6 +93,7 @@ public ResultVO index(@RequestParam(value = "page",defaultValue = "1") Integer p
91
93
/**
92
94
* 获取角色列表
93
95
*/
96
+ @ AdminAuthRuleAnnotation ("/admin/auth/admin/roleList" )
94
97
@ GetMapping ("/admin/auth/admin/roleList" )
95
98
public ResultVO roleList (@ RequestParam (value = "page" ,defaultValue = "1" ) Integer page ,
96
99
@ RequestParam (value = "limit" ,defaultValue = "50" ) Integer limit ,
@@ -105,6 +108,7 @@ public ResultVO roleList(@RequestParam(value = "page",defaultValue = "1") Intege
105
108
* 新增
106
109
* @return
107
110
*/
111
+ @ AdminAuthRuleAnnotation ("/admin/auth/admin/save" )
108
112
@ PostMapping ("/admin/auth/admin/save" )
109
113
public ResultVO save (@ RequestBody @ Valid AuthAdminForm authAdminForm ,
110
114
BindingResult bindingResult ) {
@@ -127,6 +131,7 @@ public ResultVO save(@RequestBody @Valid AuthAdminForm authAdminForm,
127
131
* 修改
128
132
* @return
129
133
*/
134
+ @ AdminAuthRuleAnnotation ("/admin/auth/admin/edit" )
130
135
@ PostMapping ("/admin/auth/admin/edit" )
131
136
public ResultVO edit (@ RequestBody @ Valid AuthAdminForm authAdminForm ,
132
137
BindingResult bindingResult ) {
@@ -150,6 +155,7 @@ public ResultVO edit(@RequestBody @Valid AuthAdminForm authAdminForm,
150
155
* 删除
151
156
* @return
152
157
*/
158
+ @ AdminAuthRuleAnnotation ("/admin/auth/admin/delete" )
153
159
@ PostMapping ("/admin/auth/admin/delete" )
154
160
public ResultVO delete (@ RequestBody AuthAdminForm authAdminForm ) {
155
161
0 commit comments