ShiroConstants.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. package com.ruoyi.common.constant;
  2. /**
  3. * Shiro通用常量
  4. *
  5. * @author ruoyi
  6. */
  7. public interface ShiroConstants
  8. {
  9. /**
  10. * 当前登录的用户
  11. */
  12. public static final String CURRENT_USER = "currentUser";
  13. /**
  14. * 用户名
  15. */
  16. public static final String CURRENT_USERNAME = "username";
  17. /**
  18. * 消息key
  19. */
  20. public static String MESSAGE = "message";
  21. /**
  22. * 错误key
  23. */
  24. public static String ERROR = "errorMsg";
  25. /**
  26. * 编码格式
  27. */
  28. public static String ENCODING = "UTF-8";
  29. /**
  30. * 当前在线会话
  31. */
  32. public String ONLINE_SESSION = "online_session";
  33. /**
  34. * 验证码key
  35. */
  36. public static final String CURRENT_CAPTCHA = "captcha";
  37. /**
  38. * 验证码开关
  39. */
  40. public static final String CURRENT_EBABLED = "captchaEbabled";
  41. /**
  42. * 验证码开关
  43. */
  44. public static final String CURRENT_TYPE = "captchaType";
  45. /**
  46. * 验证码
  47. */
  48. public static final String CURRENT_VALIDATECODE = "validateCode";
  49. /**
  50. * 验证码错误
  51. */
  52. public static final String CAPTCHA_ERROR = "captchaError";
  53. }