123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- package com.usky.constant;
- import java.util.HashMap;
- import java.util.Map;
- public interface CommonConstant {
- /**
- * 正常状态
- */
- public static final Integer STATUS_NORMAL = 0;
- /**
- * 禁用状态
- */
- public static final Integer STATUS_DISABLE = -1;
- /**
- * 删除标志
- */
- public static final Integer DEL_FLAG_1 = 1;
- /**
- * 未删除
- */
- public static final Integer DEL_FLAG_0 = 0;
- /**
- * 系统日志类型: 登录
- */
- public static final int LOG_TYPE_1 = 1;
- /**
- * 系统日志类型: 操作
- */
- public static final int LOG_TYPE_2 = 2;
- /**
- * 操作日志类型: 查询
- */
- public static final int OPERATE_TYPE_1 = 1;
- /**
- * 操作日志类型: 添加
- */
- public static final int OPERATE_TYPE_2 = 2;
- /**
- * 操作日志类型: 更新
- */
- public static final int OPERATE_TYPE_3 = 3;
- /**
- * 操作日志类型: 删除
- */
- public static final int OPERATE_TYPE_4 = 4;
- /**
- * 操作日志类型: 导入
- */
- public static final int OPERATE_TYPE_5 = 5;
- /**
- * 操作日志类型: 导出
- */
- public static final int OPERATE_TYPE_6 = 6;
- /**
- * {@code 500 Server Error} (HTTP/1.0 - RFC 1945)
- */
- public static final Integer SC_INTERNAL_SERVER_ERROR_500 = 500;
- /**
- * {@code 200 OK} (HTTP/1.0 - RFC 1945)
- */
- public static final Integer SC_OK_200 = 200;
- /** 登录用户Shiro权限缓存KEY前缀 */
- public static String PREFIX_USER_SHIRO_CACHE = "shiro:cache:org.jeecg.config.shiro.ShiroRealm.authorizationCache:";
- /** 登录用户Token令牌缓存KEY前缀 */
- public static final String PREFIX_USER_TOKEN = "prefix_user_token_";
- /** Token缓存时间:3600秒即一小时 */
- public static final int TOKEN_EXPIRE_TIME = 3600;
- /**
- * 首页天气地址
- */
- public static final String TOP_WEATHER_HOST = "https://weather01.market.alicloudapi.com";
- public static final String TOP_WEATHER_PATH = "/area-to-weather";
- public static final String TOP_WEATHER_METHOD = "GET";
- public static final String TOP_WEATHER_APPCODE = "0f2b7fce6e104ba8835358b7b59b4fb6";
- /**
- * MQTT数据接收类型
- */
- public static final String MQTT_MESSAGE_TYPE_INFO = "INFO";
- public static final String MQTT_MESSAGE_TYPE_ALARM = "ALARM";
- public final static String X_ACCESS_TOKEN = "X-Access-Token";
- }
|