wangwei hace 5 años
padre
commit
c60fe47dc5

+ 31 - 0
examcloud-core-basic-dao/src/main/java/cn/com/qmth/examcloud/core/basic/dao/entity/PrivilegeGroupEntity.java

@@ -2,11 +2,14 @@ package cn.com.qmth.examcloud.core.basic.dao.entity;
 
 import javax.persistence.Column;
 import javax.persistence.Entity;
+import javax.persistence.EnumType;
+import javax.persistence.Enumerated;
 import javax.persistence.GeneratedValue;
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.Table;
 
+import cn.com.qmth.examcloud.api.commons.enums.PrivilegeGroupType;
 import cn.com.qmth.examcloud.web.jpa.JpaEntity;
 
 /**
@@ -41,6 +44,18 @@ public class PrivilegeGroupEntity extends JpaEntity {
 	@Column(unique = true, nullable = false)
 	private String code;
 
+	/**
+	 * 权限组类型
+	 */
+	@Enumerated(EnumType.STRING)
+	private PrivilegeGroupType type;
+
+	/**
+	 * 顶级机构ID
+	 */
+	@Column(nullable = false)
+	private Long rootOrgId;
+
 	/**
 	 * 扩展属性
 	 */
@@ -95,6 +110,22 @@ public class PrivilegeGroupEntity extends JpaEntity {
 		this.code = code;
 	}
 
+	public PrivilegeGroupType getType() {
+		return type;
+	}
+
+	public void setType(PrivilegeGroupType type) {
+		this.type = type;
+	}
+
+	public Long getRootOrgId() {
+		return rootOrgId;
+	}
+
+	public void setRootOrgId(Long rootOrgId) {
+		this.rootOrgId = rootOrgId;
+	}
+
 	public String getExt1() {
 		return ext1;
 	}