UserConstants.java 980 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package com.ruoyi.common.constant;
  2. /**
  3. * 用户常量信息
  4. *
  5. * @author ruoyi
  6. */
  7. public class UserConstants
  8. {
  9. /** 正常状态 */
  10. public static final int NORMAL = 0;
  11. /** 异常状态 */
  12. public static final int EXCEPTION = 1;
  13. /** 用户封禁状态 */
  14. public static final int USER_BLOCKED = 1;
  15. /** 角色封禁状态 */
  16. public static final int ROLE_BLOCKED = 1;
  17. /** 部门正常状态 */
  18. public static final int DEPT_NORMAL = 0;
  19. /**
  20. * 用户名长度限制
  21. */
  22. public static final int USERNAME_MIN_LENGTH = 2;
  23. public static final int USERNAME_MAX_LENGTH = 20;
  24. /** 名称是否唯一的返回结果码 */
  25. public final static String NAME_UNIQUE = "0";
  26. public final static String NAME_NOT_UNIQUE = "1";
  27. /**
  28. * 密码长度限制
  29. */
  30. public static final int PASSWORD_MIN_LENGTH = 5;
  31. public static final int PASSWORD_MAX_LENGTH = 20;
  32. }