WANG пре 6 година
родитељ
комит
5c23d09292

+ 44 - 0
src/main/java/cn/com/qmth/examcloud/api/commons/enums/BooleanSelect.java

@@ -0,0 +1,44 @@
+package cn.com.qmth.examcloud.api.commons.enums;
+
+/**
+ * 页面boolean选择
+ *
+ * @author WANGWEI
+ * @date 2018年12月24日
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
+ */
+public enum BooleanSelect {
+
+	/**
+	 * 未指定
+	 */
+	UNDEFINED,
+
+	/**
+	 * true
+	 */
+	TRUE,
+
+	/**
+	 * false
+	 */
+	FALSE;
+
+	/**
+	 * 获取boolean
+	 *
+	 * @author WANGWEI
+	 * @param value
+	 * @return
+	 */
+	public Boolean getBoolean() {
+		if (UNDEFINED.equals(this)) {
+			return null;
+		} else if (TRUE.equals(this)) {
+			return true;
+		} else {
+			return false;
+		}
+	}
+
+}

+ 37 - 0
src/main/java/cn/com/qmth/examcloud/api/commons/enums/CURD.java

@@ -0,0 +1,37 @@
+package cn.com.qmth.examcloud.api.commons.enums;
+
+/**
+ * 数据库操作
+ *
+ * @author WANGWEI
+ * @date 2018年11月7日
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
+ */
+public enum CURD {
+
+	/**
+	 * 创建
+	 */
+	CREATION,
+
+	/**
+	 * 更新
+	 */
+	UPDATE,
+
+	/**
+	 * 创建或更新
+	 */
+	CREATION_OR_UPDATE,
+
+	/**
+	 * 获取
+	 */
+	RETRIEVE,
+
+	/**
+	 * 删除
+	 */
+	DELETE
+
+}