@@ -277,7 +308,7 @@ class ResourceList extends PureComponent {
type="primary"
onClick={() => this.handleModalVisible(true, 'add', {})}
>
- 新建
+ 新建权限
diff --git a/system/system-application/src/main/java/cn/iocoder/mall/admin/application/vo/resource/ResourceTreeNodeVO.java b/system/system-application/src/main/java/cn/iocoder/mall/admin/application/vo/resource/ResourceTreeNodeVO.java
index 3feda78ed..115d1e54a 100644
--- a/system/system-application/src/main/java/cn/iocoder/mall/admin/application/vo/resource/ResourceTreeNodeVO.java
+++ b/system/system-application/src/main/java/cn/iocoder/mall/admin/application/vo/resource/ResourceTreeNodeVO.java
@@ -1,34 +1,18 @@
package cn.iocoder.mall.admin.application.vo.resource;
+import cn.iocoder.mall.admin.api.bo.resource.ResourceBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
-import java.util.Date;
import java.util.List;
@ApiModel("资源树结构 VO")
@Data
@Accessors(chain = true)
-public class ResourceTreeNodeVO {
+public class ResourceTreeNodeVO extends ResourceBO {
- @ApiModelProperty(value = "资源编号", required = true, example = "1")
- private Integer id;
- @ApiModelProperty(value = "资源名字(标识)", required = true, example = "商品管理")
- private String name;
- @ApiModelProperty(value = "资源类型", required = true, example = "1")
- private Integer type;
- @ApiModelProperty(value = "排序", required = true, example = "1")
- private Integer sort;
- @ApiModelProperty(value = "菜单展示名", required = true, example = "商品管理")
- private String displayName;
- @ApiModelProperty(value = "创建时间", required = true, example = "时间戳格式")
- private Date createTime;
- @ApiModelProperty(value = "父级资源编号", required = true, example = "1", notes = "如果无父资源,则值为 0")
- private Integer pid;
- @ApiModelProperty(value = "操作", required = true, example = "/order/list")
- private String handler;
@ApiModelProperty(value = "子节点数组")
private List