xujunwei преди 2 години
родител
ревизия
68493f165d

+ 1 - 1
framework-boot/src/main/java/com/mrxu/framework/boot/bean/PageParam.java

@@ -3,7 +3,7 @@ package com.mrxu.framework.boot.bean;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.mrxu.framework.common.util.DateFunc;
 import com.mrxu.framework.common.util.MrxuAssert;
-import com.mrxu.framework.common.util.MrxuConst;
+import com.mrxu.framework.common.MrxuConst;
 import com.mrxu.framework.common.util.StrFunc;
 import io.swagger.annotations.ApiModelProperty;
 

+ 44 - 0
framework-common/src/main/java/com/mrxu/framework/common/MrxuConst.java

@@ -0,0 +1,44 @@
+package com.mrxu.framework.common;
+
+/**
+ * 全局常量
+ */
+public class MrxuConst {
+
+    /**
+     * 分页查询每页最大数据条数
+     */
+    public final static long MAX_PAGE_SIZE = 1000;
+
+    /**
+     * 启用状态值
+     */
+    public final static int enable = 1;
+
+    /**
+     * 禁用状态值
+     */
+    public final static int disable = 0;
+
+    /**
+     * 0 值避免代码中出现魔鬼数字
+     */
+    public final static int zero = 0;
+
+    /**
+     * 1 值避免代码中出现魔鬼数字
+     */
+    public final static int one = 1;
+
+    /**
+     * 操作人是自己
+     */
+    public final static String defaultPerson = "self";
+
+    /**
+     * 系统发起的操作人
+     */
+    public final static String defaultSystem = "system";
+
+
+}

+ 0 - 20
framework-common/src/main/java/com/mrxu/framework/common/util/MrxuConst.java

@@ -1,20 +0,0 @@
-package com.mrxu.framework.common.util;
-
-public class MrxuConst {
-
-    public final static long MAX_PAGE_SIZE = 1000;
-
-    public final static int enable = 1;
-
-    public final static int disable = 0;
-
-    public final static int zero = 0;
-
-    public final static int one = 1;
-
-    public final static String defaultPerson = "self";
-
-    public final static String defaultSystem = "system";
-
-
-}