UserConstants.java 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. package com.ruoyi.common.constant;
  2. /**
  3. * 用户常量信息
  4. *
  5. * @author ruoyi
  6. */
  7. public class UserConstants
  8. {
  9. /**
  10. * 平台内系统用户的唯一标志
  11. */
  12. public static final String SYS_USER = "SYS_USER";
  13. /**
  14. * ss标记的权限字符
  15. */
  16. public static final String SS_PERMISSION = "SS_PERMISSION";
  17. /** 正常状态 */
  18. public static final String NORMAL = "0";
  19. /** 异常状态 */
  20. public static final String EXCEPTION = "1";
  21. /** 用户封禁状态 */
  22. public static final String USER_DISABLE = "1";
  23. /** 角色封禁状态 */
  24. public static final String ROLE_DISABLE = "1";
  25. /** 部门正常状态 */
  26. public static final String DEPT_NORMAL = "0";
  27. /** 部门停用状态 */
  28. public static final String DEPT_DISABLE = "1";
  29. /** 字典正常状态 */
  30. public static final String DICT_NORMAL = "0";
  31. /** 是否为系统默认(是) */
  32. public static final String YES = "Y";
  33. /** 是否菜单外链(是) */
  34. public static final String YES_FRAME = "0";
  35. /** 是否菜单外链(否) */
  36. public static final String NO_FRAME = "1";
  37. /** 菜单类型(目录) */
  38. public static final String TYPE_DIR = "M";
  39. /** 菜单类型(菜单) */
  40. public static final String TYPE_MENU = "C";
  41. /** 菜单类型(按钮) */
  42. public static final String TYPE_BUTTON = "F";
  43. /** Layout组件标识 */
  44. public final static String LAYOUT = "Layout";
  45. /** ParentView组件标识 */
  46. public final static String PARENT_VIEW = "ParentView";
  47. /** InnerLink组件标识 */
  48. public final static String INNER_LINK = "InnerLink";
  49. /** 校验返回结果码 */
  50. public final static String UNIQUE = "0";
  51. public final static String NOT_UNIQUE = "1";
  52. /**
  53. * 用户名长度限制
  54. */
  55. public static final int USERNAME_MIN_LENGTH = 2;
  56. public static final int USERNAME_MAX_LENGTH = 20;
  57. /**
  58. * 密码长度限制
  59. */
  60. public static final int PASSWORD_MIN_LENGTH = 5;
  61. public static final int PASSWORD_MAX_LENGTH = 20;
  62. }