ShiroConstants.java 702 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. }