58346b922c4032794900e45ca66da9664f1d3668.svn-base 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. package org.jeecg.modules.system.entity;
  2. import java.io.Serializable;
  3. import java.util.Date;
  4. import com.baomidou.mybatisplus.annotation.IdType;
  5. import com.baomidou.mybatisplus.annotation.TableField;
  6. import com.baomidou.mybatisplus.annotation.TableId;
  7. import lombok.Data;
  8. import lombok.EqualsAndHashCode;
  9. import lombok.experimental.Accessors;
  10. import org.jeecg.common.aspect.annotation.Dict;
  11. import org.jeecgframework.poi.excel.annotation.Excel;
  12. /**
  13. * <p>
  14. * 菜单权限表
  15. * </p>
  16. *
  17. * @Author scott
  18. * @since 2018-12-21
  19. */
  20. @Data
  21. @EqualsAndHashCode(callSuper = false)
  22. @Accessors(chain = true)
  23. public class SysPermission implements Serializable {
  24. private static final long serialVersionUID = 1L;
  25. /**
  26. * id
  27. */
  28. @TableId(type = IdType.ASSIGN_ID)
  29. private String id;
  30. /**
  31. * 父id
  32. */
  33. private String parentId;
  34. /**
  35. * 菜单名称
  36. */
  37. private String name;
  38. /**
  39. * 菜单权限编码,例如:“sys:schedule:list,sys:schedule:info”,多个逗号隔开
  40. */
  41. private String perms;
  42. /**
  43. * 权限策略1显示2禁用
  44. */
  45. private String permsType;
  46. /**
  47. * 菜单图标
  48. */
  49. private String icon;
  50. /**
  51. * 组件
  52. */
  53. private String component;
  54. /**
  55. * 组件名字
  56. */
  57. private String componentName;
  58. /**
  59. * 路径
  60. */
  61. private String url;
  62. /**
  63. * 一级菜单跳转地址
  64. */
  65. private String redirect;
  66. /**
  67. * 菜单排序
  68. */
  69. private Double sortNo;
  70. /**
  71. * 类型(0:一级菜单;1:子菜单 ;2:按钮权限)
  72. */
  73. @Dict(dicCode = "menu_type")
  74. private Integer menuType;
  75. /**
  76. * 是否叶子节点: 1:是 0:不是
  77. */
  78. @TableField(value="is_leaf")
  79. private boolean leaf;
  80. /**
  81. * 是否路由菜单: 0:不是 1:是(默认值1)
  82. */
  83. @TableField(value="is_route")
  84. private boolean route;
  85. /**
  86. * 是否缓存页面: 0:不是 1:是(默认值1)
  87. */
  88. @TableField(value="keep_alive")
  89. private boolean keepAlive;
  90. /**
  91. * 描述
  92. */
  93. private String description;
  94. /**
  95. * 创建人
  96. */
  97. private String createBy;
  98. /**
  99. * 删除状态 0正常 1已删除
  100. */
  101. private Integer delFlag;
  102. /**
  103. * 是否配置菜单的数据权限 1是0否 默认0
  104. */
  105. private Integer ruleFlag;
  106. /**
  107. * 是否隐藏路由菜单: 0否,1是(默认值0)
  108. */
  109. private boolean hidden;
  110. /**
  111. * 创建时间
  112. */
  113. private Date createTime;
  114. /**
  115. * 更新人
  116. */
  117. private String updateBy;
  118. /**
  119. * 更新时间
  120. */
  121. private Date updateTime;
  122. /**按钮权限状态(0无效1有效)*/
  123. private java.lang.String status;
  124. /**alwaysShow*/
  125. private boolean alwaysShow;
  126. /*update_begin author:wuxianquan date:20190908 for:实体增加字段 */
  127. /** 外链菜单打开方式 0/内部打开 1/外部打开 */
  128. private boolean internalOrExternal;
  129. /*update_end author:wuxianquan date:20190908 for:实体增加字段 */
  130. public SysPermission() {
  131. }
  132. public SysPermission(boolean index) {
  133. if(index) {
  134. this.id = "9502685863ab87f0ad1134142788a385";
  135. this.name="首页";
  136. this.component="dashboard/Analysis";
  137. this.componentName="dashboard-analysis";
  138. this.url="/dashboard/analysis11111";
  139. this.icon="home";
  140. this.menuType=0;
  141. this.sortNo=0.0;
  142. this.ruleFlag=0;
  143. this.delFlag=0;
  144. this.alwaysShow=false;
  145. this.route=true;
  146. this.keepAlive=true;
  147. this.leaf=true;
  148. this.hidden=false;
  149. }
  150. }
  151. }