去除冗余字段.
This commit is contained in:
@@ -55,9 +55,6 @@ public class SystemMenuDTO implements Serializable {
|
|||||||
@Schema(description = "路由地址")
|
@Schema(description = "路由地址")
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
@Schema(description = "组件名称")
|
|
||||||
private String componentName;
|
|
||||||
|
|
||||||
@Schema(description = "组件地址")
|
@Schema(description = "组件地址")
|
||||||
private String component;
|
private String component;
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public class PermissionController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@IgnoreLog(IgnoreLogMode.RET)
|
@IgnoreLog(IgnoreLogMode.RET)
|
||||||
@GetMapping("/permission")
|
@GetMapping("/user")
|
||||||
@Operation(summary = "获取用户权限")
|
@Operation(summary = "获取用户权限")
|
||||||
public UserPermissionVO getUserPermission() {
|
public UserPermissionVO getUserPermission() {
|
||||||
return permissionService.getUserPermission();
|
return permissionService.getUserPermission();
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ Authorization: {{token}}
|
|||||||
"cache": "",
|
"cache": "",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"path": "",
|
"path": "",
|
||||||
"componentName": "",
|
|
||||||
"component": ""
|
"component": ""
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -34,7 +33,6 @@ Authorization: {{token}}
|
|||||||
"cache": "",
|
"cache": "",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"path": "",
|
"path": "",
|
||||||
"componentName": "",
|
|
||||||
"component": ""
|
"component": ""
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,7 +63,6 @@ Authorization: {{token}}
|
|||||||
"cache": "",
|
"cache": "",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"path": "",
|
"path": "",
|
||||||
"componentName": "",
|
|
||||||
"component": ""
|
"component": ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ public interface SystemMenuDAO extends IMapper<SystemMenuDO> {
|
|||||||
.eq(SystemMenuDO::getCache, entity.getCache())
|
.eq(SystemMenuDO::getCache, entity.getCache())
|
||||||
.eq(SystemMenuDO::getIcon, entity.getIcon())
|
.eq(SystemMenuDO::getIcon, entity.getIcon())
|
||||||
.eq(SystemMenuDO::getPath, entity.getPath())
|
.eq(SystemMenuDO::getPath, entity.getPath())
|
||||||
.eq(SystemMenuDO::getComponentName, entity.getComponentName())
|
|
||||||
.eq(SystemMenuDO::getComponent, entity.getComponent());
|
.eq(SystemMenuDO::getComponent, entity.getComponent());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,10 +70,6 @@ public class SystemMenuDO extends BaseDO {
|
|||||||
@TableField("path")
|
@TableField("path")
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
@Schema(description = "组件名称")
|
|
||||||
@TableField("component_name")
|
|
||||||
private String componentName;
|
|
||||||
|
|
||||||
@Schema(description = "组件地址")
|
@Schema(description = "组件地址")
|
||||||
@TableField("component")
|
@TableField("component")
|
||||||
private String component;
|
private String component;
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ public class SystemMenuCacheDTO {
|
|||||||
@Schema(description = "排序")
|
@Schema(description = "排序")
|
||||||
private Integer sort;
|
private Integer sort;
|
||||||
|
|
||||||
|
@Schema(description = "是否可见 0不可见 1可见")
|
||||||
|
private Integer visible;
|
||||||
|
|
||||||
@Schema(description = "菜单状态 0停用 1启用")
|
@Schema(description = "菜单状态 0停用 1启用")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
@@ -44,9 +47,6 @@ public class SystemMenuCacheDTO {
|
|||||||
@Schema(description = "路由地址")
|
@Schema(description = "路由地址")
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
@Schema(description = "组件名称")
|
|
||||||
private String componentName;
|
|
||||||
|
|
||||||
@Schema(description = "组件地址")
|
@Schema(description = "组件地址")
|
||||||
private String component;
|
private String component;
|
||||||
|
|
||||||
|
|||||||
@@ -64,16 +64,11 @@ public class SystemMenuCreateRequest implements Serializable {
|
|||||||
@Schema(description = "菜单图标")
|
@Schema(description = "菜单图标")
|
||||||
private String icon;
|
private String icon;
|
||||||
|
|
||||||
@Size(max = 128)
|
@Size(max = 256)
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema(description = "路由地址")
|
@Schema(description = "路由地址")
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
@Size(max = 64)
|
|
||||||
@NotBlank
|
|
||||||
@Schema(description = "组件名称")
|
|
||||||
private String componentName;
|
|
||||||
|
|
||||||
@Size(max = 128)
|
@Size(max = 128)
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema(description = "组件地址")
|
@Schema(description = "组件地址")
|
||||||
|
|||||||
@@ -54,14 +54,10 @@ public class SystemMenuQueryRequest extends PageRequest {
|
|||||||
@Schema(description = "菜单图标")
|
@Schema(description = "菜单图标")
|
||||||
private String icon;
|
private String icon;
|
||||||
|
|
||||||
@Size(max = 128)
|
@Size(max = 256)
|
||||||
@Schema(description = "路由地址")
|
@Schema(description = "路由地址")
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
@Size(max = 64)
|
|
||||||
@Schema(description = "组件名称")
|
|
||||||
private String componentName;
|
|
||||||
|
|
||||||
@Size(max = 128)
|
@Size(max = 128)
|
||||||
@Schema(description = "组件地址")
|
@Schema(description = "组件地址")
|
||||||
private String component;
|
private String component;
|
||||||
|
|||||||
@@ -68,16 +68,11 @@ public class SystemMenuUpdateRequest implements Serializable {
|
|||||||
@Schema(description = "菜单图标")
|
@Schema(description = "菜单图标")
|
||||||
private String icon;
|
private String icon;
|
||||||
|
|
||||||
@Size(max = 128)
|
@Size(max = 256)
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema(description = "路由地址")
|
@Schema(description = "路由地址")
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
@Size(max = 64)
|
|
||||||
@NotBlank
|
|
||||||
@Schema(description = "组件名称")
|
|
||||||
private String componentName;
|
|
||||||
|
|
||||||
@Size(max = 128)
|
@Size(max = 128)
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema(description = "组件地址")
|
@Schema(description = "组件地址")
|
||||||
|
|||||||
@@ -52,9 +52,6 @@ public class SystemMenuCreateRequest implements Serializable {
|
|||||||
@Schema(description = "路由地址")
|
@Schema(description = "路由地址")
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
@Schema(description = "组件名称")
|
|
||||||
private String componentName;
|
|
||||||
|
|
||||||
@Schema(description = "组件地址")
|
@Schema(description = "组件地址")
|
||||||
private String component;
|
private String component;
|
||||||
|
|
||||||
|
|||||||
@@ -49,9 +49,6 @@ public class SystemMenuUpdateRequest implements Serializable {
|
|||||||
@Schema(description = "路由地址")
|
@Schema(description = "路由地址")
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
@Schema(description = "组件名称")
|
|
||||||
private String componentName;
|
|
||||||
|
|
||||||
@Schema(description = "组件地址")
|
@Schema(description = "组件地址")
|
||||||
private String component;
|
private String component;
|
||||||
|
|
||||||
|
|||||||
@@ -55,16 +55,11 @@ public class SystemMenuValidMenuRequest implements Serializable {
|
|||||||
@Schema(description = "菜单图标")
|
@Schema(description = "菜单图标")
|
||||||
private String icon;
|
private String icon;
|
||||||
|
|
||||||
@Size(max = 128)
|
@Size(max = 256)
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema(description = "路由地址")
|
@Schema(description = "路由地址")
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
@Size(max = 64)
|
|
||||||
@NotBlank
|
|
||||||
@Schema(description = "组件名称")
|
|
||||||
private String componentName;
|
|
||||||
|
|
||||||
@Size(max = 128)
|
@Size(max = 128)
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema(description = "组件地址")
|
@Schema(description = "组件地址")
|
||||||
|
|||||||
@@ -58,9 +58,6 @@ public class SystemMenuVO implements Serializable {
|
|||||||
@Schema(description = "路由地址")
|
@Schema(description = "路由地址")
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
@Schema(description = "组件名称")
|
|
||||||
private String componentName;
|
|
||||||
|
|
||||||
@Schema(description = "组件地址")
|
@Schema(description = "组件地址")
|
||||||
private String component;
|
private String component;
|
||||||
|
|
||||||
|
|||||||
@@ -20,13 +20,12 @@
|
|||||||
<result column="cache" property="cache"/>
|
<result column="cache" property="cache"/>
|
||||||
<result column="icon" property="icon"/>
|
<result column="icon" property="icon"/>
|
||||||
<result column="path" property="path"/>
|
<result column="path" property="path"/>
|
||||||
<result column="component_name" property="componentName"/>
|
|
||||||
<result column="component" property="component"/>
|
<result column="component" property="component"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<!-- 通用查询结果列 -->
|
<!-- 通用查询结果列 -->
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
create_time, update_time, creator, updater, deleted, id, parent_id, name, permission, type, sort, visible, status, cache, icon, path, component_name, component
|
create_time, update_time, creator, updater, deleted, id, parent_id, name, permission, type, sort, visible, status, cache, icon, path, component
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user