修改路由

This commit is contained in:
TinyAnts 2022-04-25 10:23:55 +08:00
parent acdd2ab8dd
commit 6f7d5c5f7c
3 changed files with 9 additions and 9 deletions

View File

@ -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);

View File

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

View File

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