修改菜单列表接口

This commit is contained in:
TinyAnts 2022-06-07 16:37:41 +08:00
parent b4b451c37c
commit d4d31f2953
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ public class SystemMenuController {
*/ */
@GetMapping("/list") @GetMapping("/list")
public Object list() { public Object list() {
JSONArray lists = iSystemMenuService.lists(); JSONArray lists = iSystemMenuService.list();
return AjaxResult.success(lists); return AjaxResult.success(lists);
} }

View File

@ -26,7 +26,7 @@ public interface ISystemMenuService {
* @author fzr * @author fzr
* @return JSONArray * @return JSONArray
*/ */
JSONArray lists(); JSONArray list();
/** /**
* 菜单详情 * 菜单详情

View File

@ -72,7 +72,7 @@ public class SystemMenuServiceImpl implements ISystemMenuService {
* @return JSONArray * @return JSONArray
*/ */
@Override @Override
public JSONArray lists() { public JSONArray list() {
QueryWrapper<SystemMenu> queryWrapper = new QueryWrapper<>(); QueryWrapper<SystemMenu> queryWrapper = new QueryWrapper<>();
queryWrapper.orderByAsc(Arrays.asList("menu_sort", "id")); queryWrapper.orderByAsc(Arrays.asList("menu_sort", "id"));