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

com.nxyfan.framework.common.constant.CommonConstant Maven / Gradle / Ivy

package com.nxyfan.framework.common.constant;

/** 
 *
 * Describe: 公共常量类
 * Author: amour  
 * Create Time: 2022年11月3日 上午9:36:04 
 * Copyright @ 2022 51LIFE  
 */
public class CommonConstant {

	/**
	 * 版本
	 */
	public static final String VERSION = "1.0.0";
	
	/**
	 * 公司网站
	 */
	public static final String COMPANY_URL = "https://www.nxyfan.com";
	
	/**
	 * 公司邮箱
	 */
	public static final String COMPANY_EMAIL = "[email protected]";
	
	/**
	 * 顶级的项目父类主键
	 */
	public static final String ROOT_PARENT_FLOW = "0";
	
	/**
	 * 所有redis其他缓存Key的前缀
	 */
	public static final String REDIS_KEY_PREFIX_CACHE = "Cache:";
	
	/**
	 * redis里系统配置key的前缀
	 */
	public static final String REDIS_CONFIG_CACHE_KEY = "sys-config:";
	
	/**
	 * 所有redis字典缓存Key的前缀
	 */
	public static final String REDIS_KEY_PREFIX_TRANS = "trans:";
	
	/**
	 * redis里数据字典key
	 */
	public static final String REDIS_DICTIONARY_CACHE_KEY = "sys-dictionary";
    
	/**
	 * redis里授权验证码key的前缀
	 */
	public static final String REDIS_AUTH_CACHE_KEY = "auth-validCode:";
	
	/**
	 * redis里接口用户key的前缀
	 */
	public static final String REDIS_INTERFACE_USER_KEY = "interface-user:";
	
	/**
	 * redis里登录失败次数key的前缀
	 */
	public static final String LOGIN_ERROR_TIMES_KEY_PREFIX = "login-error-times:";
	
	/**
	 * redis里重复提交key的前缀
	 */
	public static final String REPEAT_SUBMIT_KEY_PREFIX = "repeat-submit:";
	
	/**
	 * Y标识
	 */
    public static final String Y = "Y";
  
    /**
	 * N标识
	 */
    public static final String N = "N";
    
	/**
	 * 删除标识:未删除
	 */
    public static final String DELETE_MARK_Y = "Y";
  
    /**
	 * 删除标识:已删除
	 */
    public static final String DELETE_MARK_N = "N";
    
    /**
        * 默认用户密码
     */
    public static final String CONFIG_KEY_SYS_DEFAULT_PASSWORD = "CONFIG_SYS_DEFAULT_PASSWORD";
    
    /**
	 * 系统文件组号
	 */
    public static final String CONFIG_KEY_SYS_FILE_GROUP = "CONFIG_SYS_FILE_GROUP";
    
    /**
	 * 系统文件上传地址
	 */
    public static final String CONFIG_KEY_SYS_FILE_UPLOAD_PATH = "CONFIG_SYS_FILE_UPLOAD_PATH";
    
    /**
	 * 系统文件显示内网路径
	 */
    public static final String CONFIG_KEY_SYS_FILE_SHOW_LAN_PATH = "CONFIG_SYS_FILE_SHOW_LAN_PATH";
    
    /**
	 * 系统文件显示外网路径
	 */
    public static final String CONFIG_KEY_SYS_FILE_SHOW_WAN_PATH = "CONFIG_SYS_FILE_SHOW_WAN_PATH";
    
    /**
	 * 登录验证码开关前缀
	 */
    public static final String CONFIG_KEY_SYS_LOGIN_CAPTCHA_OPEN = "_SYS_LOGIN_CAPTCHA_OPEN";
    
    /**
	 * 登录密码过期开关前缀
	 */
    public static final String CONFIG_KEY_SYS_PASSWORD_EXPIRED_OPEN = "CONFIG_SYS_PASSWORD_EXPIRED_OPEN";
    
    /**
	 * 登录密码的有效期,单位秒
	 */
    public static final String CONFIG_KEY_SYS_PASSWORD_EXPIRY_TIME = "CONFIG_SYS_PASSWORD_EXPIRY_TIME";
    
    /**
	 * 在此登录连续时长(单位:秒)内,出现一定次数登录失败则封禁账号 
	 */
    public static final String CONFIG_KEY_SYS_LOGIN_DURATION = "CONFIG_SYS_LOGIN_DURATION";
    
    /**
	 * 连续登录失败次数
	 */
    public static final String CONFIG_KEY_SYS_LOGIN_ERROR_TIMES = "CONFIG_SYS_LOGIN_ERROR_TIMES";
    
    /**
	 * 连续登录失败封禁时间(单位:秒)
	 */
    public static final String CONFIG_KEY_SYS_LOGIN_DISABLE_TIME = "CONFIG_SYS_LOGIN_DISABLE_TIME";
    
    /**
     * 重复提交提示信息
     */
    public static final String CONFIG_KEY_SYS_REPEAT_SUBMIT_MESSAGE = "CONFIG_SYS_REPEAT_SUBMIT_MESSAGE";
    
    /**
	 * 系统用户头像路径
	 */
    public static final String SYS_USER_AVATAR_PATH = "user/sys/avatar";
    
    /**
	 * C端用户头像路径
	 */
    public static final String CLIENT_USER_AVATAR_PATH = "user/client/avatar";
    
    /**
	 * 请求地址异常信息配置
	 */
    public static final String CONFIG_KEY_SYS_REQUEST_URL_ERROR = "CONFIG_SYS_REQUEST_URL_ERROR";
    
    /**
	 * 系统默认错误提示信息
	 */
    public static final String CONFIG_KEY_SYS_DEFAULT_ERROR_MSG = "CONFIG_SYS_DEFAULT_ERROR_MSG";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy