123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- package com.ruoyi.system.domain;
- import com.ruoyi.common.core.web.domain.BaseEntity;
- import org.apache.commons.lang3.builder.ToStringBuilder;
- import org.apache.commons.lang3.builder.ToStringStyle;
- import javax.validation.constraints.NotBlank;
- import javax.validation.constraints.NotNull;
- import javax.validation.constraints.Size;
- import java.util.ArrayList;
- import java.util.List;
- /**
- * 菜单权限表 sys_menu
- *
- * @author ruoyi
- */
- public class SysMenu extends BaseEntity
- {
- private static final long serialVersionUID = 1L;
- /** 菜单ID */
- private Long menuId;
- /** 菜单名称 */
- private String menuName;
- /** 父菜单名称 */
- private String parentName;
- /** 父菜单ID */
- private Long parentId;
- /** 显示顺序 */
- private Integer orderNum;
- /** 路由地址 */
- private String path;
- /** 组件路径 */
- private String component;
- /** 路由参数 */
- private String query;
- /** 是否为外链(0是 1否) */
- private String isFrame;
- /** 是否缓存(0缓存 1不缓存) */
- private String isCache;
- /** 类型(M目录 C菜单 F按钮) */
- private String menuType;
- /** 显示状态(0显示 1隐藏) */
- private String visible;
- /** 菜单状态(0显示 1隐藏) */
- private String status;
- /** 权限字符串 */
- private String perms;
- /** 菜单图标 */
- private String icon;
- /** 子菜单 */
- private List<SysMenu> children = new ArrayList<SysMenu>();
- /**对应前端类型*/
- private String frontType;
- private String[] frontTypes;
- public String[] getFrontTypes() {
- return frontTypes;
- }
- public void setFrontTypes(String[] frontTypes) {
- this.frontTypes = frontTypes;
- }
- /**用户id*/
- private Long userId;
- public Long getUserId() {
- return userId;
- }
- public void setUserId(Long userId) {
- this.userId = userId;
- }
- public String getFrontType() {
- return frontType;
- }
- public void setFrontType(String frontType) {
- this.frontType = frontType;
- }
- public Long getMenuId()
- {
- return menuId;
- }
- public void setMenuId(Long menuId)
- {
- this.menuId = menuId;
- }
- @NotBlank(message = "菜单名称不能为空")
- @Size(min = 0, max = 50, message = "菜单名称长度不能超过50个字符")
- public String getMenuName()
- {
- return menuName;
- }
- public void setMenuName(String menuName)
- {
- this.menuName = menuName;
- }
- public String getParentName()
- {
- return parentName;
- }
- public void setParentName(String parentName)
- {
- this.parentName = parentName;
- }
- public Long getParentId()
- {
- return parentId;
- }
- public void setParentId(Long parentId)
- {
- this.parentId = parentId;
- }
- @NotNull(message = "显示顺序不能为空")
- public Integer getOrderNum()
- {
- return orderNum;
- }
- public void setOrderNum(Integer orderNum)
- {
- this.orderNum = orderNum;
- }
- @Size(min = 0, max = 200, message = "路由地址不能超过200个字符")
- public String getPath()
- {
- return path;
- }
- public void setPath(String path)
- {
- this.path = path;
- }
- @Size(min = 0, max = 200, message = "组件路径不能超过255个字符")
- public String getComponent()
- {
- return component;
- }
- public void setComponent(String component)
- {
- this.component = component;
- }
- public String getQuery()
- {
- return query;
- }
- public void setQuery(String query)
- {
- this.query = query;
- }
- public String getIsFrame()
- {
- return isFrame;
- }
- public void setIsFrame(String isFrame)
- {
- this.isFrame = isFrame;
- }
- public String getIsCache()
- {
- return isCache;
- }
- public void setIsCache(String isCache)
- {
- this.isCache = isCache;
- }
- @NotBlank(message = "菜单类型不能为空")
- public String getMenuType()
- {
- return menuType;
- }
- public void setMenuType(String menuType)
- {
- this.menuType = menuType;
- }
- public String getVisible()
- {
- return visible;
- }
- public void setVisible(String visible)
- {
- this.visible = visible;
- }
- public String getStatus()
- {
- return status;
- }
- public void setStatus(String status)
- {
- this.status = status;
- }
- @Size(min = 0, max = 100, message = "权限标识长度不能超过100个字符")
- public String getPerms()
- {
- return perms;
- }
- public void setPerms(String perms)
- {
- this.perms = perms;
- }
- public String getIcon()
- {
- return icon;
- }
- public void setIcon(String icon)
- {
- this.icon = icon;
- }
- public List<SysMenu> getChildren()
- {
- return children;
- }
- public void setChildren(List<SysMenu> children)
- {
- this.children = children;
- }
- @Override
- public String toString() {
- return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
- .append("menuId", getMenuId())
- .append("menuName", getMenuName())
- .append("parentId", getParentId())
- .append("orderNum", getOrderNum())
- .append("path", getPath())
- .append("component", getComponent())
- .append("isFrame", getIsFrame())
- .append("IsCache", getIsCache())
- .append("menuType", getMenuType())
- .append("visible", getVisible())
- .append("status ", getStatus())
- .append("perms", getPerms())
- .append("icon", getIcon())
- .append("createBy", getCreateBy())
- .append("createTime", getCreateTime())
- .append("updateBy", getUpdateBy())
- .append("updateTime", getUpdateTime())
- .append("remark", getRemark())
- .toString();
- }
- }
|