123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- package org.jeecg.modules.system.entity;
- import java.io.Serializable;
- import java.util.Date;
- import com.baomidou.mybatisplus.annotation.IdType;
- import com.baomidou.mybatisplus.annotation.TableField;
- import com.baomidou.mybatisplus.annotation.TableId;
- import lombok.Data;
- import lombok.EqualsAndHashCode;
- import lombok.experimental.Accessors;
- import org.jeecg.common.aspect.annotation.Dict;
- import org.jeecgframework.poi.excel.annotation.Excel;
- /**
- * <p>
- * 菜单权限表
- * </p>
- *
- * @Author scott
- * @since 2018-12-21
- */
- @Data
- @EqualsAndHashCode(callSuper = false)
- @Accessors(chain = true)
- public class SysPermission implements Serializable {
- private static final long serialVersionUID = 1L;
- /**
- * id
- */
- @TableId(type = IdType.ASSIGN_ID)
- private String id;
- /**
- * 父id
- */
- private String parentId;
- /**
- * 菜单名称
- */
- private String name;
- /**
- * 菜单权限编码,例如:“sys:schedule:list,sys:schedule:info”,多个逗号隔开
- */
- private String perms;
- /**
- * 权限策略1显示2禁用
- */
- private String permsType;
- /**
- * 菜单图标
- */
- private String icon;
- /**
- * 组件
- */
- private String component;
-
- /**
- * 组件名字
- */
- private String componentName;
- /**
- * 路径
- */
- private String url;
- /**
- * 一级菜单跳转地址
- */
- private String redirect;
- /**
- * 菜单排序
- */
- private Double sortNo;
- /**
- * 类型(0:一级菜单;1:子菜单 ;2:按钮权限)
- */
- @Dict(dicCode = "menu_type")
- private Integer menuType;
- /**
- * 是否叶子节点: 1:是 0:不是
- */
- @TableField(value="is_leaf")
- private boolean leaf;
-
- /**
- * 是否路由菜单: 0:不是 1:是(默认值1)
- */
- @TableField(value="is_route")
- private boolean route;
- /**
- * 是否缓存页面: 0:不是 1:是(默认值1)
- */
- @TableField(value="keep_alive")
- private boolean keepAlive;
- /**
- * 描述
- */
- private String description;
- /**
- * 创建人
- */
- private String createBy;
- /**
- * 删除状态 0正常 1已删除
- */
- private Integer delFlag;
-
- /**
- * 是否配置菜单的数据权限 1是0否 默认0
- */
- private Integer ruleFlag;
-
- /**
- * 是否隐藏路由菜单: 0否,1是(默认值0)
- */
- private boolean hidden;
- /**
- * 创建时间
- */
- private Date createTime;
- /**
- * 更新人
- */
- private String updateBy;
- /**
- * 更新时间
- */
- private Date updateTime;
-
- /**按钮权限状态(0无效1有效)*/
- private java.lang.String status;
-
- /**alwaysShow*/
- private boolean alwaysShow;
- /*update_begin author:wuxianquan date:20190908 for:实体增加字段 */
- /** 外链菜单打开方式 0/内部打开 1/外部打开 */
- private boolean internalOrExternal;
- /*update_end author:wuxianquan date:20190908 for:实体增加字段 */
- public SysPermission() {
-
- }
- public SysPermission(boolean index) {
- if(index) {
- this.id = "9502685863ab87f0ad1134142788a385";
- this.name="首页";
- this.component="dashboard/Analysis";
- this.componentName="dashboard-analysis";
- this.url="/dashboard/analysis11111";
- this.icon="home";
- this.menuType=0;
- this.sortNo=0.0;
- this.ruleFlag=0;
- this.delFlag=0;
- this.alwaysShow=false;
- this.route=true;
- this.keepAlive=true;
- this.leaf=true;
- this.hidden=false;
- }
-
- }
- }
|