From 5322f5f707cb9cd1ca11ceeadc299b698e862ef3 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期四, 02 十二月 2021 14:18:20 +0800 Subject: [PATCH] update 常量类 接口化 --- ruoyi-common/src/main/java/com/ruoyi/common/constant/UserConstants.java | 48 ++++++++++++++++++++++++------------------------ 1 files changed, 24 insertions(+), 24 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/constant/UserConstants.java b/ruoyi-common/src/main/java/com/ruoyi/common/constant/UserConstants.java index fa88e7c..eebbb4b 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/constant/UserConstants.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/constant/UserConstants.java @@ -5,108 +5,108 @@ * * @author ruoyi */ -public class UserConstants { +public interface UserConstants { /** * 骞冲彴鍐呯郴缁熺敤鎴风殑鍞竴鏍囧織 */ - public static final String SYS_USER = "SYS_USER"; + String SYS_USER = "SYS_USER"; /** * 姝e父鐘舵�� */ - public static final String NORMAL = "0"; + String NORMAL = "0"; /** * 寮傚父鐘舵�� */ - public static final String EXCEPTION = "1"; + String EXCEPTION = "1"; /** * 鐢ㄦ埛灏佺鐘舵�� */ - public static final String USER_DISABLE = "1"; + String USER_DISABLE = "1"; /** * 瑙掕壊灏佺鐘舵�� */ - public static final String ROLE_DISABLE = "1"; + String ROLE_DISABLE = "1"; /** * 閮ㄩ棬姝e父鐘舵�� */ - public static final String DEPT_NORMAL = "0"; + String DEPT_NORMAL = "0"; /** * 閮ㄩ棬鍋滅敤鐘舵�� */ - public static final String DEPT_DISABLE = "1"; + String DEPT_DISABLE = "1"; /** * 瀛楀吀姝e父鐘舵�� */ - public static final String DICT_NORMAL = "0"; + String DICT_NORMAL = "0"; /** * 鏄惁涓虹郴缁熼粯璁わ紙鏄級 */ - public static final String YES = "Y"; + String YES = "Y"; /** * 鏄惁鑿滃崟澶栭摼锛堟槸锛� */ - public static final String YES_FRAME = "0"; + String YES_FRAME = "0"; /** * 鏄惁鑿滃崟澶栭摼锛堝惁锛� */ - public static final String NO_FRAME = "1"; + String NO_FRAME = "1"; /** * 鑿滃崟绫诲瀷锛堢洰褰曪級 */ - public static final String TYPE_DIR = "M"; + String TYPE_DIR = "M"; /** * 鑿滃崟绫诲瀷锛堣彍鍗曪級 */ - public static final String TYPE_MENU = "C"; + String TYPE_MENU = "C"; /** * 鑿滃崟绫诲瀷锛堟寜閽級 */ - public static final String TYPE_BUTTON = "F"; + String TYPE_BUTTON = "F"; /** * Layout缁勪欢鏍囪瘑 */ - public final static String LAYOUT = "Layout"; + String LAYOUT = "Layout"; /** * ParentView缁勪欢鏍囪瘑 */ - public final static String PARENT_VIEW = "ParentView"; + String PARENT_VIEW = "ParentView"; /** * InnerLink缁勪欢鏍囪瘑 */ - public final static String INNER_LINK = "InnerLink"; + String INNER_LINK = "InnerLink"; /** * 鏍¢獙杩斿洖缁撴灉鐮� */ - public final static String UNIQUE = "0"; - public final static String NOT_UNIQUE = "1"; + String UNIQUE = "0"; + String NOT_UNIQUE = "1"; /** * 鐢ㄦ埛鍚嶉暱搴﹂檺鍒� */ - public static final int USERNAME_MIN_LENGTH = 2; - public static final int USERNAME_MAX_LENGTH = 20; + int USERNAME_MIN_LENGTH = 2; + int USERNAME_MAX_LENGTH = 20; /** * 瀵嗙爜闀垮害闄愬埗 */ - public static final int PASSWORD_MIN_LENGTH = 5; - public static final int PASSWORD_MAX_LENGTH = 20; + int PASSWORD_MIN_LENGTH = 5; + int PASSWORD_MAX_LENGTH = 20; } -- Gitblit v1.9.3