From 5ca038d888922e93bf45c7bd37f3c6dce849dcff Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期五, 24 十二月 2021 11:36:02 +0800 Subject: [PATCH] update 调整监控依赖 从 common 迁移到 framework --- ruoyi-common/src/main/java/com/ruoyi/common/constant/UserConstants.java | 118 ++++++++++++++++++++++++++++++++++++++--------------------- 1 files changed, 76 insertions(+), 42 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 a936cd8..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,74 +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"; + /** + * 姝e父鐘舵�� + */ + 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"; + /** + * 閮ㄩ棬姝e父鐘舵�� + */ + String DEPT_NORMAL = "0"; - /** 閮ㄩ棬鍋滅敤鐘舵�� */ - public static final String DEPT_DISABLE = "1"; + /** + * 閮ㄩ棬鍋滅敤鐘舵�� + */ + String DEPT_DISABLE = "1"; - /** 瀛楀吀姝e父鐘舵�� */ - public static final String DICT_NORMAL = "0"; + /** + * 瀛楀吀姝e父鐘舵�� + */ + 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"; + /** + * Layout缁勪欢鏍囪瘑 + */ + String LAYOUT = "Layout"; - /** ParentView缁勪欢鏍囪瘑 */ - public final static String PARENT_VIEW = "ParentView"; + /** + * ParentView缁勪欢鏍囪瘑 + */ + String PARENT_VIEW = "ParentView"; - /** InnerLink缁勪欢鏍囪瘑 */ - public final static String INNER_LINK = "InnerLink"; + /** + * 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