All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lx.constant.DefaultBaseConstant Maven / Gradle / Ivy

package com.lx.constant;

import com.lx.annotation.Note;

public interface DefaultBaseConstant {
    String USER_INFO = "USER_INFO";
    String FIRM_ID = "firmId";
    String API_APPID = "api_appid";
    String CUSTOM_DB_INFO = "CUSTOM_DB_INFO";

    @Note("是否开启POST接口加密验证")
    String SERVER_ENCRYPTION_AUTHENTICATION ="server.encryptionAuthentication";
    @Note("无需登录")
    String SERVER_NOTAUTH = "server.notAuth.url.pattern";
    @Note("无需登录和加密")
    String SERVER_NOTAUTHANDENCRYPTION = "server.notAuthAndEncryption.url.pattern";
    @Note("第三方接口 ")
    String API_SECURITY_FILTER_URL_PATTERNS = "server.apiSecurityFilter.urlPatterns";
    @Note("静态文件")
    String DEFAULT_SERVER_STATIC_FILE_URL = "^((/swagger-resources.*)|(/webjars/.*)|(/v3/api-docs.*)|(/.*\\.(html|js|css))|(/error)|(/favicon.ico))$";
    String[] DEFAULT_SERVER_NOTAUTHANDENCRYPTION_URLS = new String[]{"/swagger-resources/**", "/v3/api-docs","/v3/api-docs/swagger-config","/error"};
    @Note(" 无需加密")
    String SERVER_NOT_ENCRYPTION = "server.notEncryption.url.pattern";
    String DEFAULT_SERVER_NOT_ENCRYPTION_URL = "^((/lxjob/.*))$";
    @Note("是否允许一个用户同时多点登录 需配合 AuthUtil.createToken 使用 在createJwtToken下失效!")
    String SERVER_AT_SAME_TIME_LOGIN = "server.atSameTimeLogin";
    @Note("token 超时分钟数")
    String SERVER_TOKEN_TIMEOUT_MINUTES = "server.token.timeout.minutes";
    @Note("系统日志/定时任务界面登录密钥")
    String SERVER_USER_KEY = "server.user.key";
    @Note("系统日志/定时任务界面登录默认密钥")
    String DEFAULT_SERVER_USER_KEY = "qqqq1111";
    @Note("用户登录使用JWT的密钥")
    String SERVER_JWT_KEY = "server.jwt.key";
    @Note("用户登录使用JWT的默认密钥")
    String DEFAULT_SERVER_JWT_KEY = "JWT@441SDA231xda";
    @Note(" 请求头认证字符串")
    String AUTHORIZATION = "Authorization";
    @Note(" 系统接口请求头认证字符串")
    String SYS_AUTHORIZATION = "sysAuthorization";
    @Note(" 系统接口请求头认证字符串时间戳")
    String SYS_AUTHORIZATION_TIMESTAMP = "sysAuthorizationTimestamp";
    @Note(" 系统接口请求头认证字符串随机字符")
    String SYS_AUTHORIZATION_NONCE = "sysAuthorizationNonce";

    @Note("是否开启动态数据源")
    String DB_ENABLE = "db.enable";
    @Note("是否开启自动事务")
    String OPEN_AUTO_TRANSACTION_INTERCEPTOR = "db.open-auto-transaction-interceptor";
    @Note("数据库连接地址")
    String DB_CUSTOM_URL = "db.customUrl";
    @Note("数据库用户名")
    String DB_USERNAME = "db.user";
    @Note("数据库密码")
    String DB_PASSWORD = "db.pass";
    @Note("是否启动定时任务")
    String LXJOB_ENABLE = "lxjob.enable";
    @Note("是否开启日志服务")
    String LXLOG_ENABLE = "lxlog.enable";
    @Note("是否开启接口过滤器(进行允许跨域 和 接口入参解密)")
    String SECURITY_FILTER_ENABLE = "securityFilter.enable";
    @Note("是否开启拦截器 (默认开启)")
    String SECURITY_INTERCEPTOR_ENABLE = "securityInterceptor.enable";
    @Note("是否开启返回异常拦截器")
    String WEB_CONFIGURER_ENABLE = "webConfigurer.enable";
    @Note("ES服务地址及端口")
    String ES_HOSTS = "es.esHosts";
    @Note("ES用户名")
    String ES_USERNAME = "es.username";
    @Note("ES密码")
    String ES_PASSWORD = "es.password";
    @Note("swagger扫描路径,默认扫描启动类下的包")
    String SWAGGER_BASE_PACKAGE = "swagger.basePackage";
    @Note("swagger默认请求头携带参数")
    String SWAGGER_DEFAULT_HEADERS = "swagger.defaultHeaders";
    @Note("发件的邮箱账号")
    String EMAIL_SEND_MEMBER = "email.sendMember";
    @Note("发件邮箱密钥")
    String EMAIL_SMTP_PASSWORD = "email.smtpPassword";
    @Note("邮箱Host")
    String EMAIL_SMTP_HOST = "email.smtpHost";
    @Note("邮箱Port")
    String EMAIL_SMTP_PORT = "email.smtpPort";
    @Note("是否开启rabbitmq")
    String MQ_ENABLE = "mq.enable";
    @Note("mq错误时推送邮箱列表")
    String MQ_EMAIL_USERS_LIST = "mq.emailUsersList";


    public interface Enabled{
        String YES = "1";
        String NO = "0";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy