修改菜单

This commit is contained in:
lijiahang
2023-08-09 14:37:16 +08:00
parent f2251e6c65
commit b38fd5ee11
12 changed files with 137 additions and 63 deletions

View File

@@ -37,6 +37,9 @@ public class SystemMenuUpdateRequest implements Serializable {
@Schema(description = "排序")
private Integer sort;
@Schema(description = "菜单类型 1父菜单 2子菜单 3功能")
private Integer type;
@Schema(description = "是否可见 0不可见 1可见")
private Integer visible;

View File

@@ -49,7 +49,6 @@ public class SystemMenuValidMenuRequest implements Serializable {
@Schema(description = "菜单缓存 0不缓存 1缓存")
private Integer cache;
@NotBlank
@Size(max = 64)
@Schema(description = "菜单图标")
private String icon;

View File

@@ -64,5 +64,4 @@ public class SystemMenuVO implements Serializable {
@Schema(description = "子节点")
private List<SystemMenuVO> children;
}

View File

@@ -80,7 +80,7 @@ public class SystemMenuServiceImpl implements SystemMenuService {
// 转换
SystemMenuDO updateRecord = SystemMenuConvert.MAPPER.to(request);
// 验证参数
this.validateRequest(updateRecord, record.getType());
this.validateRequest(updateRecord, request.getType());
// 更新
int effect = systemMenuDAO.updateById(updateRecord);
log.info("SystemMenuService-updateSystemMenu effect: {}, updateRecord: {}", effect, JSON.toJSONString(updateRecord));