package com.ruoyi.common.core.constant;
|
|
/**
|
* 通用常量信息
|
*
|
* @author ruoyi
|
*/
|
public class Constants {
|
/**
|
* 微信获取授权openId地址
|
*/
|
public static final String WX_OPENID_ADDRESS = "https://api.weixin.qq.com/sns/jscode2session";
|
|
/**
|
* UTF-8 字符集
|
*/
|
public static final String UTF8 = "UTF-8";
|
|
/**
|
* GBK 字符集
|
*/
|
public static final String GBK = "GBK";
|
|
/**
|
* www主域
|
*/
|
public static final String WWW = "www.";
|
|
/**
|
* RMI 远程方法调用
|
*/
|
public static final String LOOKUP_RMI = "rmi:";
|
|
/**
|
* LDAP 远程方法调用
|
*/
|
public static final String LOOKUP_LDAP = "ldap:";
|
|
/**
|
* LDAPS 远程方法调用
|
*/
|
public static final String LOOKUP_LDAPS = "ldaps:";
|
|
/**
|
* http请求
|
*/
|
public static final String HTTP = "http://";
|
|
/**
|
* https请求
|
*/
|
public static final String HTTPS = "https://";
|
|
/**
|
* 成功标记
|
*/
|
public static final Integer SUCCESS = 200;
|
|
/**
|
* 失败标记
|
*/
|
public static final Integer FAIL = 500;
|
|
/**
|
* 登录成功状态
|
*/
|
public static final String LOGIN_SUCCESS_STATUS = "0";
|
|
/**
|
* 登录失败状态
|
*/
|
public static final String LOGIN_FAIL_STATUS = "1";
|
|
/**
|
* 登录成功
|
*/
|
public static final String LOGIN_SUCCESS = "Success";
|
|
/**
|
* 注销
|
*/
|
public static final String LOGOUT = "Logout";
|
|
/**
|
* 注册
|
*/
|
public static final String REGISTER = "Register";
|
|
/**
|
* 登录失败
|
*/
|
public static final String LOGIN_FAIL = "Error";
|
|
/**
|
* 当前记录起始索引
|
*/
|
public static final String PAGE_NUM = "pageNum";
|
|
/**
|
* 每页显示记录数
|
*/
|
public static final String PAGE_SIZE = "pageSize";
|
|
/**
|
* 排序列
|
*/
|
public static final String ORDER_BY_COLUMN = "orderByColumn";
|
|
/**
|
* 排序的方向 "desc" 或者 "asc".
|
*/
|
public static final String IS_ASC = "isAsc";
|
|
/**
|
* 验证码有效期(分钟)
|
*/
|
public static final long CAPTCHA_EXPIRATION = 2;
|
|
/**
|
* 资源映射路径 前缀
|
*/
|
public static final String RESOURCE_PREFIX = "/profile";
|
|
/**
|
* 自动识别json对象白名单配置(仅允许解析的包名,范围越小越安全)
|
*/
|
public static final String[] JSON_WHITELIST_STR = {"org.springframework", "com.ruoyi"};
|
|
/**
|
* 定时任务白名单配置(仅允许访问的包名,如其他需要可以自行添加)
|
*/
|
public static final String[] JOB_WHITELIST_STR = {"com.ruoyi.job.task"};
|
|
/**
|
* 定时任务违规的字符
|
*/
|
public static final String[] JOB_ERROR_STR = {"java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
|
"org.springframework", "org.apache", "com.ruoyi.common.core.utils.file"};
|
|
/**
|
* 提现记录excel模板名称
|
*/
|
public static final String EXCEL_WITHDRAWAL_FILE_NAME = "提现记录";
|
|
/**
|
* 订单记录excel模板名称
|
*/
|
public static final String EXCEL_ORDER_FILE_NAME = "订单记录";
|
public static final String EXCEL_ORDER_FILE_NAME1 = "加盟商余额记录";
|
public static final String EXCEL_ORDER_FILE_NAME2 = "加盟商扣款记录";
|
|
/**
|
* 用户编号生成前缀
|
*/
|
public static final String USER_NO_PRE = "用户%s";
|
|
/**
|
* 待审核 数字状态
|
*/
|
public static final Integer AUDIT_NUMBER = 0;
|
|
/**
|
* 待审核 中文状态
|
*/
|
public static final String AUDIT_STR = "待审核";
|
|
/**
|
* 已通过 数字状态
|
*/
|
public static final Integer PASS_THROUGH_NUMBER = 1;
|
|
/**
|
* 已通过 中文状态
|
*/
|
public static final String PASS_THROUGH_STR = "已通过";
|
|
/**
|
* 已驳回 数字状态
|
*/
|
public static final Integer REJECT_NUMBER = 2;
|
|
/**
|
* 已驳回 中文状态
|
*/
|
public static final String REJECT_STR = "已驳回";
|
|
/**
|
* 家电以旧换新
|
*/
|
public static final String TRADE_IN = "家电以旧换新";
|
|
/**
|
* 预约上门回收
|
*/
|
public static final String RECOVERY = "预约上门回收";
|
|
/**
|
* 数字60
|
*/
|
public static final Integer SIXTY = 60;
|
|
/**
|
* 数字0
|
*/
|
public static final Integer ZERO = 0;
|
|
/**
|
* 数字1
|
*/
|
public static final Integer ONE = 1;
|
|
/**
|
* 数字2
|
*/
|
public static final Integer TWO = 2;
|
|
/**
|
* 数字3
|
*/
|
public static final Integer THREE = 3;
|
|
/**
|
* 数字4
|
*/
|
public static final Integer FOUR = 4;
|
|
/**
|
* 数字5
|
*/
|
public static final Integer FIVE = 5;
|
|
/**
|
* 数字6
|
*/
|
public static final Integer SIX = 6;
|
|
/**
|
* 数字10
|
*/
|
public static final Integer TEN = 10;
|
|
/**
|
* 数字18
|
*/
|
public static final Integer EIGHTEEN = 18;
|
|
/**
|
* 数字8
|
*/
|
public static final Integer EIGHT = 8;
|
|
/**
|
* 数字 30
|
*/
|
public static final Integer THIRTY = 30;
|
|
/**
|
* 数字100
|
*/
|
public static final Integer ONE_HUNDRED = 100;
|
|
/**
|
* 数字 365
|
*/
|
public static final Integer YEAR_DAY = 365;
|
|
/**
|
* 数字 3000
|
*/
|
public static final Integer THREE_THOUSAND = 2000;
|
|
/**
|
* 师傅端默认用户ID前缀
|
*/
|
public static final String DEFAULT_USER_NUMBER_PRE = "用户";
|
|
/**
|
* 师傅端默认用户ID前缀
|
*/
|
public static final String SUBSIDY_MONEY = "¥";
|
|
/**
|
* 师傅端默认用户ID前缀
|
*/
|
public static final String PROVINCE = "省";
|
|
/**
|
* 师傅端默认用户ID前缀
|
*/
|
public static final String MARKET = "市";
|
|
/**
|
* 师傅端默认密码
|
*/
|
public static final String DEFAULT_PASSWORD = "123456";
|
|
/**
|
* 三端默认验证码
|
*/
|
public static final String DEFAULT_PHONE_CODE = "123456";
|
|
/**
|
* 手机号码正则
|
*/
|
public static final String PHONE = "^1[3456789]\\d{9}$";
|
|
}
|