修改路由
This commit is contained in:
parent
acdd2ab8dd
commit
6f7d5c5f7c
|
|
@ -32,8 +32,8 @@ public class SystemAdminController {
|
|||
* @author fzr
|
||||
* @return Object
|
||||
*/
|
||||
@GetMapping("/lists")
|
||||
public Object lists(@Validated PageParam pageParam,
|
||||
@GetMapping("/list")
|
||||
public Object list(@Validated PageParam pageParam,
|
||||
@RequestParam Map<String, String> params) {
|
||||
PageResult<SystemAdminVo> list = iSystemAdminService.lists(pageParam, params);
|
||||
return AjaxResult.success(list);
|
||||
|
|
|
|||
|
|
@ -24,13 +24,13 @@ public class SystemMenuController {
|
|||
ISystemMenuService iSystemMenuService;
|
||||
|
||||
/**
|
||||
* 获取系统菜单
|
||||
* 获取菜单路由
|
||||
*
|
||||
* @author fzr
|
||||
* @return Object
|
||||
*/
|
||||
@GetMapping("/menus")
|
||||
public Object menus() {
|
||||
@GetMapping("/route")
|
||||
public Object route() {
|
||||
Integer roleId = LikeAdminThreadLocal.getRoleId();
|
||||
JSONArray lists = iSystemMenuService.selectMenuByRoleId(roleId);
|
||||
return AjaxResult.success(lists);
|
||||
|
|
@ -42,8 +42,8 @@ public class SystemMenuController {
|
|||
* @author fzr
|
||||
* @return Object
|
||||
*/
|
||||
@GetMapping("/lists")
|
||||
public Object lists() {
|
||||
@GetMapping("/list")
|
||||
public Object list() {
|
||||
JSONArray lists = iSystemMenuService.lists();
|
||||
return AjaxResult.success(lists);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@ public class SystemRoleController {
|
|||
* @return Object
|
||||
*/
|
||||
@Log(title = "角色列表")
|
||||
@GetMapping("/lists")
|
||||
public Object lists(@Validated PageParam pageParam) {
|
||||
@GetMapping("/list")
|
||||
public Object list(@Validated PageParam pageParam) {
|
||||
PageResult<SystemRoleVo> lists = iSystemRoleService.lists(pageParam);
|
||||
return AjaxResult.success(lists);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue