修改菜单
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -64,5 +64,4 @@ public class SystemMenuVO implements Serializable {
|
||||
@Schema(description = "子节点")
|
||||
private List<SystemMenuVO> children;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user