wangwei 7 năm trước cách đây
mục cha
commit
77ca8277b8

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

@@ -32,6 +32,12 @@ public class App extends JpaEntity {
 	@Column(unique = true, nullable = false)
 	private String name;
 
+	/**
+	 * 应用编码
+	 */
+	@Column(unique = true, nullable = false)
+	private String code;
+
 	public String getId() {
 		return id;
 	}
@@ -48,4 +54,12 @@ public class App extends JpaEntity {
 		this.name = name;
 	}
 
+	public String getCode() {
+		return code;
+	}
+
+	public void setCode(String code) {
+		this.code = code;
+	}
+
 }

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

@@ -34,6 +34,12 @@ public class PrivilegeGroup extends JpaEntity {
 	@Column(unique = true, nullable = false)
 	private String name;
 
+	/**
+	 * 权限组编码
+	 */
+	@Column(unique = true, nullable = false)
+	private String code;
+
 	/**
 	 * 应用
 	 */
@@ -56,6 +62,14 @@ public class PrivilegeGroup extends JpaEntity {
 		this.name = name;
 	}
 
+	public String getCode() {
+		return code;
+	}
+
+	public void setCode(String code) {
+		this.code = code;
+	}
+
 	public String getAppId() {
 		return appId;
 	}