去除冗余字段.

This commit is contained in:
lijiahang
2023-07-28 13:44:23 +08:00
parent 5be2c7fda2
commit 900cd1c1d7
14 changed files with 9 additions and 49 deletions

View File

@@ -55,9 +55,6 @@ public class SystemMenuDTO implements Serializable {
@Schema(description = "路由地址")
private String path;
@Schema(description = "组件名称")
private String componentName;
@Schema(description = "组件地址")
private String component;

View File

@@ -54,7 +54,7 @@ public class PermissionController {
}
@IgnoreLog(IgnoreLogMode.RET)
@GetMapping("/permission")
@GetMapping("/user")
@Operation(summary = "获取用户权限")
public UserPermissionVO getUserPermission() {
return permissionService.getUserPermission();

View File

@@ -13,7 +13,6 @@ Authorization: {{token}}
"cache": "",
"icon": "",
"path": "",
"componentName": "",
"component": ""
}
@@ -34,7 +33,6 @@ Authorization: {{token}}
"cache": "",
"icon": "",
"path": "",
"componentName": "",
"component": ""
}
@@ -65,7 +63,6 @@ Authorization: {{token}}
"cache": "",
"icon": "",
"path": "",
"componentName": "",
"component": ""
}

View File

@@ -33,7 +33,6 @@ public interface SystemMenuDAO extends IMapper<SystemMenuDO> {
.eq(SystemMenuDO::getCache, entity.getCache())
.eq(SystemMenuDO::getIcon, entity.getIcon())
.eq(SystemMenuDO::getPath, entity.getPath())
.eq(SystemMenuDO::getComponentName, entity.getComponentName())
.eq(SystemMenuDO::getComponent, entity.getComponent());
}

View File

@@ -70,10 +70,6 @@ public class SystemMenuDO extends BaseDO {
@TableField("path")
private String path;
@Schema(description = "组件名称")
@TableField("component_name")
private String componentName;
@Schema(description = "组件地址")
@TableField("component")
private String component;

View File

@@ -32,6 +32,9 @@ public class SystemMenuCacheDTO {
@Schema(description = "排序")
private Integer sort;
@Schema(description = "是否可见 0不可见 1可见")
private Integer visible;
@Schema(description = "菜单状态 0停用 1启用")
private Integer status;
@@ -44,9 +47,6 @@ public class SystemMenuCacheDTO {
@Schema(description = "路由地址")
private String path;
@Schema(description = "组件名称")
private String componentName;
@Schema(description = "组件地址")
private String component;

View File

@@ -64,16 +64,11 @@ public class SystemMenuCreateRequest implements Serializable {
@Schema(description = "菜单图标")
private String icon;
@Size(max = 128)
@Size(max = 256)
@NotBlank
@Schema(description = "路由地址")
private String path;
@Size(max = 64)
@NotBlank
@Schema(description = "组件名称")
private String componentName;
@Size(max = 128)
@NotBlank
@Schema(description = "组件地址")

View File

@@ -54,14 +54,10 @@ public class SystemMenuQueryRequest extends PageRequest {
@Schema(description = "菜单图标")
private String icon;
@Size(max = 128)
@Size(max = 256)
@Schema(description = "路由地址")
private String path;
@Size(max = 64)
@Schema(description = "组件名称")
private String componentName;
@Size(max = 128)
@Schema(description = "组件地址")
private String component;

View File

@@ -68,16 +68,11 @@ public class SystemMenuUpdateRequest implements Serializable {
@Schema(description = "菜单图标")
private String icon;
@Size(max = 128)
@Size(max = 256)
@NotBlank
@Schema(description = "路由地址")
private String path;
@Size(max = 64)
@NotBlank
@Schema(description = "组件名称")
private String componentName;
@Size(max = 128)
@NotBlank
@Schema(description = "组件地址")

View File

@@ -52,9 +52,6 @@ public class SystemMenuCreateRequest implements Serializable {
@Schema(description = "路由地址")
private String path;
@Schema(description = "组件名称")
private String componentName;
@Schema(description = "组件地址")
private String component;

View File

@@ -49,9 +49,6 @@ public class SystemMenuUpdateRequest implements Serializable {
@Schema(description = "路由地址")
private String path;
@Schema(description = "组件名称")
private String componentName;
@Schema(description = "组件地址")
private String component;

View File

@@ -55,16 +55,11 @@ public class SystemMenuValidMenuRequest implements Serializable {
@Schema(description = "菜单图标")
private String icon;
@Size(max = 128)
@Size(max = 256)
@NotBlank
@Schema(description = "路由地址")
private String path;
@Size(max = 64)
@NotBlank
@Schema(description = "组件名称")
private String componentName;
@Size(max = 128)
@NotBlank
@Schema(description = "组件地址")

View File

@@ -58,9 +58,6 @@ public class SystemMenuVO implements Serializable {
@Schema(description = "路由地址")
private String path;
@Schema(description = "组件名称")
private String componentName;
@Schema(description = "组件地址")
private String component;

View File

@@ -20,13 +20,12 @@
<result column="cache" property="cache"/>
<result column="icon" property="icon"/>
<result column="path" property="path"/>
<result column="component_name" property="componentName"/>
<result column="component" property="component"/>
</resultMap>
<!-- 通用查询结果列 -->
<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>
</mapper>