菜单获取修改
This commit is contained in:
@@ -51,11 +51,13 @@ public class MenuController {
|
|||||||
* 获取所有菜单
|
* 获取所有菜单
|
||||||
* @return 菜单结构
|
* @return 菜单结构
|
||||||
*/
|
*/
|
||||||
@SaAdminCheckRole("管理员")
|
|
||||||
@SaAdminCheckPermission(value = "menu:list", name = "菜单列表")
|
@SaAdminCheckPermission(value = "menu:list", name = "菜单列表")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public CzgResult<List<MenuVO>> all(String title, String startTime, String endTime) {
|
public CzgResult<List<MenuVO>> all(String title, String startTime, String endTime) {
|
||||||
|
if (StpKit.USER.isAdmin()) {
|
||||||
return CzgResult.success(menuService.getAll(title, startTime, endTime));
|
return CzgResult.success(menuService.getAll(title, startTime, endTime));
|
||||||
|
}
|
||||||
|
return CzgResult.success(menuService.getMenu());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user