CommonConstant.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. /**
  62. * 首页天气地址
  63. */
  64. public static final String TOP_WEATHER_HOST = "https://weather01.market.alicloudapi.com";
  65. public static final String TOP_WEATHER_PATH = "/area-to-weather";
  66. public static final String TOP_WEATHER_METHOD = "GET";
  67. public static final String TOP_WEATHER_APPCODE = "0f2b7fce6e104ba8835358b7b59b4fb6";
  68. /**
  69. * MQTT数据接收类型
  70. */
  71. public static final String MQTT_MESSAGE_TYPE_INFO = "INFO";
  72. public static final String MQTT_MESSAGE_TYPE_ALARM = "ALARM";
  73. }