wangwei 7 жил өмнө
parent
commit
5d2d065e89

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

@@ -0,0 +1,51 @@
+package cn.com.qmth.examcloud.core.basic.dao.entity;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.Table;
+
+import cn.com.qmth.examcloud.commons.web.support.JpaEntitySupport;
+
+/**
+ * 应用
+ *
+ * @author WANGWEI
+ * @date 2018年5月23日
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
+ */
+@Entity
+@Table(name = "EC_B_APP")
+public class App extends JpaEntitySupport {
+
+	private static final long serialVersionUID = -6288949236298877031L;
+
+	/**
+	 * 应用ID
+	 */
+	@Id
+	private String id;
+
+	/**
+	 * 应用名称
+	 */
+	@Column(unique = true, nullable = false)
+	private String name;
+
+	public String getId() {
+		return id;
+	}
+
+	public void setId(String id) {
+		this.id = id;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+}

+ 6 - 6
examcloud-core-basic-dao/src/main/java/cn/com/qmth/examcloud/core/basic/dao/entity/Privilege.java

@@ -39,10 +39,10 @@ public class Privilege extends JpaEntitySupport implements TreeNode {
 	private String parentId;
 
 	/**
-	 * 域(区分系统)
+	 * 应用
 	 */
 	@Column(unique = false, nullable = false)
-	private String domainId;
+	private String appId;
 
 	/**
 	 * 组(权限分组,同一组的权限构成权限树)
@@ -74,12 +74,12 @@ public class Privilege extends JpaEntitySupport implements TreeNode {
 		this.parentId = parentId;
 	}
 
-	public String getDomainId() {
-		return domainId;
+	public String getAppId() {
+		return appId;
 	}
 
-	public void setDomainId(String domainId) {
-		this.domainId = domainId;
+	public void setAppId(String appId) {
+		this.appId = appId;
 	}
 
 	public String getGroupId() {

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

@@ -0,0 +1,51 @@
+package cn.com.qmth.examcloud.core.basic.dao.entity;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.Table;
+
+import cn.com.qmth.examcloud.commons.web.support.JpaEntitySupport;
+
+/**
+ * 权限组
+ *
+ * @author WANGWEI
+ * @date 2018年5月23日
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
+ */
+@Entity
+@Table(name = "EC_B_PRIVILEGE_GROUP")
+public class PrivilegeGroup extends JpaEntitySupport {
+
+	private static final long serialVersionUID = -3654724059677675683L;
+
+	/**
+	 * 权限组ID
+	 */
+	@Id
+	private String id;
+
+	/**
+	 * 权限组名称
+	 */
+	@Column(unique = true, nullable = false)
+	private String name;
+
+	public String getId() {
+		return id;
+	}
+
+	public void setId(String id) {
+		this.id = id;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+}