feat:授权增加一个备注字段
This commit is contained in:
@@ -30,6 +30,12 @@ public class CoreRoleUser extends DaoBase {
|
|||||||
@TableField(value = "type_id")
|
@TableField(value = "type_id")
|
||||||
private String typeId;
|
private String typeId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 说明
|
||||||
|
*/
|
||||||
|
@TableField(value = "remark")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 过期时间,无则不过期
|
* 过期时间,无则不过期
|
||||||
*/
|
*/
|
||||||
@@ -108,6 +114,14 @@ public class CoreRoleUser extends DaoBase {
|
|||||||
this.typeId = typeId;
|
this.typeId = typeId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getRemark() {
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark) {
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取过期时间,无则不过期
|
* 获取过期时间,无则不过期
|
||||||
*
|
*
|
||||||
@@ -179,4 +193,4 @@ public class CoreRoleUser extends DaoBase {
|
|||||||
public void setExt3(String ext3) {
|
public void setExt3(String ext3) {
|
||||||
this.ext3 = ext3;
|
this.ext3 = ext3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,4 +108,7 @@ alter table core_role_authority
|
|||||||
alter table core_role_group_rx
|
alter table core_role_group_rx
|
||||||
add type varchar(10) null comment '关联类型:dep-依赖,bind-绑定';
|
add type varchar(10) null comment '关联类型:dep-依赖,bind-绑定';
|
||||||
|
|
||||||
|
alter table core_role_user
|
||||||
|
add remark varchar(500) null comment '说明' after type_id;
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
SET FOREIGN_KEY_CHECKS = 1;
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||||
<result column="type" jdbcType="VARCHAR" property="type" />
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
||||||
<result column="type_id" jdbcType="VARCHAR" property="typeId" />
|
<result column="type_id" jdbcType="VARCHAR" property="typeId" />
|
||||||
|
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||||
<result column="expire_time" jdbcType="TIMESTAMP" property="expireTime" />
|
<result column="expire_time" jdbcType="TIMESTAMP" property="expireTime" />
|
||||||
<result column="ext1" jdbcType="VARCHAR" property="ext1" />
|
<result column="ext1" jdbcType="VARCHAR" property="ext1" />
|
||||||
<result column="ext2" jdbcType="VARCHAR" property="ext2" />
|
<result column="ext2" jdbcType="VARCHAR" property="ext2" />
|
||||||
@@ -18,7 +19,7 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
id, create_time, update_time, is_deleted, user_id, `type`, type_id, expire_time,
|
id, create_time, update_time, is_deleted, user_id, `type`, type_id, remark, expire_time,
|
||||||
ext1, ext2, ext3
|
ext1, ext2, ext3
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user