移除 admin-web 项目,迁移到单独的工程
This commit is contained in:
@@ -32,8 +32,6 @@ public class AdminController {
|
||||
@Autowired
|
||||
private AdminManager adminManager;
|
||||
|
||||
// =========== 管理员管理 API ===========
|
||||
|
||||
@ApiOperation(value = "管理员分页")
|
||||
@GetMapping("/page")
|
||||
@RequiresPermissions("system.admin.page")
|
||||
|
||||
@@ -39,4 +39,9 @@ GET {{baseUrl}}/resource/tree-admin-menu
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Authorization: Bearer {{accessToken}}
|
||||
|
||||
### /resource/list-admin-permission 成功
|
||||
GET {{baseUrl}}/resource/list-admin-permission
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Authorization: Bearer {{accessToken}}
|
||||
|
||||
###
|
||||
|
||||
@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import static cn.iocoder.common.framework.vo.CommonResult.success;
|
||||
|
||||
@@ -72,10 +73,18 @@ public class ResourceController {
|
||||
return success(resourceManager.treeResource());
|
||||
}
|
||||
|
||||
// =========== 当前管理员相关 API ===========
|
||||
|
||||
@GetMapping("/tree-admin-menu")
|
||||
@ApiOperation("获得当前登陆的管理员的菜单树")
|
||||
public CommonResult<List<AdminMenuTreeNodeVO>> treeAdminMenu() {
|
||||
return success(resourceManager.treeAdminMenu(AdminSecurityContextHolder.getAdminId()));
|
||||
}
|
||||
|
||||
@GetMapping("/list-admin-permission")
|
||||
@ApiOperation("获得当前登陆的管理员的权限列表")
|
||||
public CommonResult<Set<String>> listAdminPermission() {
|
||||
return success(resourceManager.listAdminPermission(AdminSecurityContextHolder.getAdminId()));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -32,5 +32,7 @@ public class ResourceCreateDTO {
|
||||
private String route;
|
||||
@ApiModelProperty(value = "菜单图标", example = "add")
|
||||
private String icon;
|
||||
@ApiModelProperty(value = "前端界面", example = "@/views/example/edit")
|
||||
private String view;
|
||||
|
||||
}
|
||||
|
||||
@@ -35,5 +35,7 @@ public class ResourceUpdateDTO {
|
||||
private String route;
|
||||
@ApiModelProperty(value = "菜单图标", example = "add")
|
||||
private String icon;
|
||||
@ApiModelProperty(value = "前端界面", example = "@/views/example/edit")
|
||||
private String view;
|
||||
|
||||
}
|
||||
|
||||
@@ -20,6 +20,8 @@ public class AdminMenuTreeNodeVO {
|
||||
private String route;
|
||||
@ApiModelProperty(value = "菜单图标", required = true, example = "user")
|
||||
private String icon;
|
||||
@ApiModelProperty(value = "前端界面", example = "@/views/example/edit")
|
||||
private String view;
|
||||
@ApiModelProperty(value = "父级资源编号", required = true, example = "1", notes = "如果无父资源,则值为 0")
|
||||
private Integer pid;
|
||||
|
||||
|
||||
@@ -37,6 +37,8 @@ public class ResourceTreeNodeVO {
|
||||
private String route;
|
||||
@ApiModelProperty(value = "菜单图标", example = "add")
|
||||
private String icon;
|
||||
@ApiModelProperty(value = "前端界面", example = "@/views/example/edit")
|
||||
private String view;
|
||||
@ApiModelProperty(value = "添加时间", required = true)
|
||||
private Date createTime;
|
||||
|
||||
|
||||
@@ -35,6 +35,8 @@ public class ResourceVO {
|
||||
private String route;
|
||||
@ApiModelProperty(value = "菜单图标", example = "add")
|
||||
private String icon;
|
||||
@ApiModelProperty(value = "前端界面", example = "@/views/example/edit")
|
||||
private String view;
|
||||
@ApiModelProperty(value = "添加时间", required = true)
|
||||
private Date createTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user