You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.yanzhen.entity;
import java.util.List;
public class Menu { // 定义一个名为Menu的公共类
private Integer id; // 私有成员变量,用于存储菜单项的唯一标识符
private String title; // 私有成员变量,用于存储菜单项的标题
private String icon; // 私有成员变量,用于存储菜单项的图标
private String href; // 私有成员变量,用于存储菜单项的链接地址
private String target; // 私有成员变量,用于指定链接打开的目标窗口
private Integer parentId; // 私有成员变量用于存储父菜单项的ID
private Integer type; // 私有成员变量,用于存储菜单项的类型
private List<Menu> child; // 私有成员变量,用于存储子菜单项的列表
// 以下为该类的成员变量的getter和setter方法
public Integer getId() { // 获取菜单项的ID
return id;
}
public void setId(Integer id) { // 设置菜单项的ID
this.id = id;
}
public String getTitle() { // 获取菜单项的标题
return title;
}
public void setTitle(String title) { // 设置菜单项的标题
this.title = title;
}
public String getIcon() { // 获取菜单项的图标
return icon;
}
public void setIcon(String icon) { // 设置菜单项的图标
this.icon = icon;
}
public String getHref() { // 获取菜单项的链接地址
return href;
}
public void setHref(String href) { // 设置菜单项的链接地址
this.href = href;
}
public String getTarget() { // 获取链接打开的目标窗口
return target;
}
public void setTarget(String target) { // 设置链接打开的目标窗口
this.target = target;
}
public Integer getParentId() { // 获取父菜单项的ID
return parentId;
}
public void setParentId(Integer parentId) { // 设置父菜单项的ID
this.parentId = parentId;
}
public Integer getType() { // 获取菜单项的类型
return type;
}
public void setType(Integer type) { // 设置菜单项的类型
this.type = type;
}
public List<Menu> getChild() { // 获取子菜单项的列表
return child;
}
public void setChild(List<Menu> child) { // 设置子菜单项的列表
this.child = child;
}
}