|
@@ -2,40 +2,18 @@
|
|
|
package com.dragoninfo.dcuc.auth.auth.entity;
|
|
|
|
|
|
import com.dragonsoft.duceap.base.entity.persistent.IdEntity;
|
|
|
+import lombok.Data;
|
|
|
import org.hibernate.annotations.GenericGenerator;
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
import java.util.Date;
|
|
|
|
|
|
//角色信息表
|
|
|
+@Data
|
|
|
@Entity
|
|
|
@Table(name = "T_ROLE_INFO")
|
|
|
public class RoleInfo implements IdEntity<String> {
|
|
|
|
|
|
- public RoleInfo() {
|
|
|
- }
|
|
|
-
|
|
|
- public RoleInfo(String id, String code, String name, String appId, String detail, String roleLevel, Integer initNumber,
|
|
|
- String isActive, Date createTime, String creator, Date modifiedTime, String modifier,
|
|
|
- String roleBusiness, String policeCategory, String isNotLimitCount, String remark) {
|
|
|
- this.id = id;
|
|
|
- this.code = code;
|
|
|
- this.name = name;
|
|
|
- this.appId = appId;
|
|
|
- this.detail = detail;
|
|
|
- this.roleLevel = roleLevel;
|
|
|
- this.initNumber = initNumber;
|
|
|
- this.isActive = isActive;
|
|
|
- this.createTime = createTime;
|
|
|
- this.creator = creator;
|
|
|
- this.modifiedTime = modifiedTime;
|
|
|
- this.modifier = modifier;
|
|
|
- this.roleBusiness = roleBusiness;
|
|
|
- this.policeCategory = policeCategory;
|
|
|
- this.isNotLimitCount = isNotLimitCount;
|
|
|
- this.remark = remark;
|
|
|
- }
|
|
|
-
|
|
|
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
|
|
|
//columns START
|
|
|
@Id
|
|
@@ -107,154 +85,15 @@ public class RoleInfo implements IdEntity<String> {
|
|
|
|
|
|
@Column(name = "ROLE_TYPE")
|
|
|
private String roleType;
|
|
|
- //columns END
|
|
|
|
|
|
@Column(name = "FACE_VERIFY_FLAG")
|
|
|
private String faceVerifyFlag;
|
|
|
|
|
|
- public String getFaceVerifyFlag() {
|
|
|
- return faceVerifyFlag;
|
|
|
- }
|
|
|
-
|
|
|
- public void setFaceVerifyFlag(String faceVerifyFlag) {
|
|
|
- this.faceVerifyFlag = faceVerifyFlag;
|
|
|
- }
|
|
|
-
|
|
|
- public void setId(String value) {
|
|
|
- this.id = value;
|
|
|
- }
|
|
|
-
|
|
|
- public String getId() {
|
|
|
- return this.id;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCode(String value) {
|
|
|
- this.code = value;
|
|
|
- }
|
|
|
-
|
|
|
- public String getCode() {
|
|
|
- return this.code;
|
|
|
- }
|
|
|
-
|
|
|
- public void setName(String value) {
|
|
|
- this.name = value;
|
|
|
- }
|
|
|
-
|
|
|
- public String getName() {
|
|
|
- return this.name;
|
|
|
- }
|
|
|
-
|
|
|
- public void setAppId(String value) {
|
|
|
- this.appId = value;
|
|
|
- }
|
|
|
-
|
|
|
- public String getAppId() {
|
|
|
- return this.appId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setDetail(String value) {
|
|
|
- this.detail = value;
|
|
|
- }
|
|
|
-
|
|
|
- public String getDetail() {
|
|
|
- return this.detail;
|
|
|
- }
|
|
|
-
|
|
|
- public void setRoleLevel(String value) {
|
|
|
- this.roleLevel = value;
|
|
|
- }
|
|
|
-
|
|
|
- public String getRoleLevel() {
|
|
|
- return this.roleLevel;
|
|
|
- }
|
|
|
-
|
|
|
- public void setInitNumber(Integer value) {
|
|
|
- this.initNumber = value;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getInitNumber() {
|
|
|
- return this.initNumber;
|
|
|
- }
|
|
|
-
|
|
|
- public void setIsActive(String value) {
|
|
|
- this.isActive = value;
|
|
|
- }
|
|
|
-
|
|
|
- public String getIsActive() {
|
|
|
- return this.isActive;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCreateTime(java.util.Date value) {
|
|
|
- this.createTime = value;
|
|
|
- }
|
|
|
-
|
|
|
- public java.util.Date getCreateTime() {
|
|
|
- return this.createTime;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCreator(String value) {
|
|
|
- this.creator = value;
|
|
|
- }
|
|
|
-
|
|
|
- public String getCreator() {
|
|
|
- return this.creator;
|
|
|
- }
|
|
|
-
|
|
|
- public void setModifiedTime(java.util.Date value) {
|
|
|
- this.modifiedTime = value;
|
|
|
- }
|
|
|
-
|
|
|
- public java.util.Date getModifiedTime() {
|
|
|
- return this.modifiedTime;
|
|
|
- }
|
|
|
-
|
|
|
- public void setModifier(String value) {
|
|
|
- this.modifier = value;
|
|
|
- }
|
|
|
-
|
|
|
- public String getModifier() {
|
|
|
- return this.modifier;
|
|
|
- }
|
|
|
-
|
|
|
- public void setRemark(String value) {
|
|
|
- this.remark = value;
|
|
|
- }
|
|
|
-
|
|
|
- public String getRemark() {
|
|
|
- return this.remark;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- public String getRoleBusiness() {
|
|
|
- return roleBusiness;
|
|
|
- }
|
|
|
-
|
|
|
- public void setRoleBusiness(String roleBusiness) {
|
|
|
- this.roleBusiness = roleBusiness;
|
|
|
- }
|
|
|
-
|
|
|
- public String getPoliceCategory() {
|
|
|
- return policeCategory;
|
|
|
- }
|
|
|
-
|
|
|
- public void setPoliceCategory(String policeCategory) {
|
|
|
- this.policeCategory = policeCategory;
|
|
|
- }
|
|
|
-
|
|
|
- public String getIsNotLimitCount() {
|
|
|
- return isNotLimitCount;
|
|
|
- }
|
|
|
-
|
|
|
- public void setIsNotLimitCount(String isNotLimitCount) {
|
|
|
- this.isNotLimitCount = isNotLimitCount;
|
|
|
- }
|
|
|
-
|
|
|
- public String getRoleType() {
|
|
|
- return roleType;
|
|
|
- }
|
|
|
+ /**
|
|
|
+ * 角色关键状态 LOCAL:本地角色 ALL:全局角色 默认本地角色
|
|
|
+ */
|
|
|
+ @Column(name = "ROLE_CATEGORY")
|
|
|
+ private String roleCategory = "LOCAL";
|
|
|
|
|
|
- public void setRoleType(String roleType) {
|
|
|
- this.roleType = roleType;
|
|
|
- }
|
|
|
}
|
|
|
|