CommonConstant.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. package com.usky.constant;
  2. import java.util.HashMap;
  3. import java.util.Map;
  4. public interface CommonConstant {
  5. /**
  6. * 正常状态
  7. */
  8. public static final Integer STATUS_NORMAL = 0;
  9. /**
  10. * 禁用状态
  11. */
  12. public static final Integer STATUS_DISABLE = -1;
  13. /**
  14. * 删除标志
  15. */
  16. public static final Integer DEL_FLAG_1 = 1;
  17. /**
  18. * 未删除
  19. */
  20. public static final Integer DEL_FLAG_0 = 0;
  21. /**
  22. * 系统日志类型: 登录
  23. */
  24. public static final int LOG_TYPE_1 = 1;
  25. /**
  26. * 系统日志类型: 操作
  27. */
  28. public static final int LOG_TYPE_2 = 2;
  29. /**
  30. * 操作日志类型: 查询
  31. */
  32. public static final int OPERATE_TYPE_1 = 1;
  33. /**
  34. * 操作日志类型: 添加
  35. */
  36. public static final int OPERATE_TYPE_2 = 2;
  37. /**
  38. * 操作日志类型: 更新
  39. */
  40. public static final int OPERATE_TYPE_3 = 3;
  41. /**
  42. * 操作日志类型: 删除
  43. */
  44. public static final int OPERATE_TYPE_4 = 4;
  45. /**
  46. * 操作日志类型: 导入
  47. */
  48. public static final int OPERATE_TYPE_5 = 5;
  49. /**
  50. * 操作日志类型: 导出
  51. */
  52. public static final int OPERATE_TYPE_6 = 6;
  53. /**
  54. * {@code 500 Server Error} (HTTP/1.0 - RFC 1945)
  55. */
  56. public static final Integer SC_INTERNAL_SERVER_ERROR_500 = 500;
  57. /**
  58. * {@code 200 OK} (HTTP/1.0 - RFC 1945)
  59. */
  60. public static final Integer SC_OK_200 = 200;
  61. /** 登录用户Shiro权限缓存KEY前缀 */
  62. public static String PREFIX_USER_SHIRO_CACHE = "shiro:cache:org.jeecg.config.shiro.ShiroRealm.authorizationCache:";
  63. /** 登录用户Token令牌缓存KEY前缀 */
  64. public static final String PREFIX_USER_TOKEN = "prefix_user_token_";
  65. /** Token缓存时间:3600秒即一小时 */
  66. public static final int TOKEN_EXPIRE_TIME = 3600;
  67. /**
  68. * 首页天气地址
  69. */
  70. public static final String TOP_WEATHER_HOST = "https://weather01.market.alicloudapi.com";
  71. public static final String TOP_WEATHER_PATH = "/area-to-weather";
  72. public static final String TOP_WEATHER_METHOD = "GET";
  73. public static final String TOP_WEATHER_APPCODE = "0f2b7fce6e104ba8835358b7b59b4fb6";
  74. /**
  75. * MQTT数据接收类型
  76. */
  77. public static final String MQTT_MESSAGE_TYPE_INFO = "INFO";
  78. public static final String MQTT_MESSAGE_TYPE_ALARM = "ALARM";
  79. public final static String X_ACCESS_TOKEN = "X-Access-Token";
  80. }