package com.kidgrow.common.constant;
|
|
/**
|
* 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
|
*
|
* @Description: 全局公共常量<br>
|
* @Project: <br>
|
* @CreateDate: Created in 2020/2/3 16:24 <br>
|
* @Author: <a href="4345453@kidgrow.com">liuke</a>
|
*/
|
public interface CommonConstant {
|
/**
|
* token请求头名称
|
*/
|
String TOKEN_HEADER = "Authorization";
|
|
/**
|
* The access token issued by the authorization server. This value is REQUIRED.
|
*/
|
String ACCESS_TOKEN = "access_token";
|
|
String BEARER_TYPE = "Bearer";
|
|
/**
|
* 客户端浏览器
|
*/
|
String USER_AGENT_BROWSER="user_agent_browser";
|
|
/**
|
* 客户端操作系统
|
*/
|
String USER_AGENT_SYSTEM="user_agent_system";
|
|
/**
|
* 客户端IP
|
*/
|
String USER_AGENT_IP="user_agent_ip";
|
/**
|
* 客户端屏幕分辨率
|
*/
|
String USER_AGENT_SYSTEM_SCREEN="user_agent_system_screen";
|
|
/**
|
* 标签 header key
|
*/
|
String HEADER_LABEL = "x-label";
|
|
/**
|
* 标签 header 分隔符
|
*/
|
String HEADER_LABEL_SPLIT = ",";
|
|
/**
|
* 标签或 名称
|
*/
|
String LABEL_OR = "labelOr";
|
|
/**
|
* 标签且 名称
|
*/
|
String LABEL_AND = "labelAnd";
|
|
/**
|
* 权重key
|
*/
|
String WEIGHT_KEY = "weight";
|
|
/**
|
* 删除
|
*/
|
String STATUS_DEL = "1";
|
|
/**
|
* 正常
|
*/
|
String STATUS_NORMAL = "0";
|
|
/**
|
* 锁定
|
*/
|
String STATUS_LOCK = "9";
|
|
/**
|
* 目录
|
*/
|
Integer CATALOG = -1;
|
|
/**
|
* 菜单
|
*/
|
Integer MENU = 1;
|
|
/**
|
* 权限
|
*/
|
Integer PERMISSION = 2;
|
|
/**
|
* 删除标记
|
*/
|
String DEL_FLAG = "is_del";
|
|
/**
|
* 超级管理员用户名
|
*/
|
String ADMIN_USER_NAME = "admin-xg";
|
/**
|
* 超级管理的id
|
*/
|
Long ADMIN_USER_ID=1000000000000000001L;
|
/**
|
* 公共日期格式
|
*/
|
String MONTH_FORMAT = "yyyy-MM";
|
String DATE_FORMAT = "yyyy-MM-dd";
|
String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
|
String SIMPLE_MONTH_FORMAT = "yyyyMM";
|
String SIMPLE_DATE_FORMAT = "yyyyMMdd";
|
String SIMPLE_DATETIME_FORMAT = "yyyyMMddHHmmss";
|
/**
|
* 默认密码
|
*/
|
String DEF_USER_PASSWORD = "123456";
|
|
String LOCK_KEY_PREFIX = "LOCK_KEY:";
|
/**
|
* H端的 tenantid
|
*/
|
String H_TENANT="hospital";
|
/**
|
* H端的 登录用户类型
|
*/
|
String H_DOCTOR="doctor";
|
/**
|
* 租户id参数
|
*/
|
String TENANT_ID_PARAM = "tenantId";
|
|
|
/**
|
* 日志链路追踪id信息头
|
*/
|
String TRACE_ID_HEADER = "x-traceId-header";
|
|
|
/**
|
* API请求时间戳
|
*/
|
String REQUEST_TIMESTAMP = "timestamp";
|
|
|
/**
|
* API请求时Version
|
*/
|
String REQUEST_VERSION = "version";
|
|
/**
|
* 日志链路追踪id日志标志
|
*/
|
String LOG_TRACE_ID = "traceId";
|
|
/**
|
* 默认分页大小
|
*/
|
int DEFAULT_PAGE_SIZE =20;
|
|
/**
|
* UUID"零"值
|
*/
|
String UUID_EMPTY ="00000000-0000-0000-0000-000000000000";
|
|
/**
|
* 默认超级管理员账号
|
*/
|
public final static String ROOT = "admin-xg";
|
|
/**
|
* 负载均衡策略-版本号 信息头
|
*/
|
String KIDGROW_VERSION = "kidgrow-version";
|
/**
|
* 注册中心元数据 版本号
|
*/
|
String METADATA_VERSION = "metadata_version";
|
|
/**
|
* 默认最小页码
|
*/
|
public static final int MIN_PAGE = 0;
|
/**
|
* 最大显示条数
|
*/
|
public static final int MAX_LIMIT = 999;
|
/**
|
* 默认页码
|
*/
|
public static final int DEFAULT_PAGE = 1;
|
/**
|
* 默认显示条数
|
*/
|
public static final int DEFAULT_LIMIT = 10;
|
/**
|
* 页码 KEY
|
*/
|
public static final String PAGE_KEY = "page";
|
/**
|
* 显示条数 KEY
|
*/
|
public static final String PAGE_LIMIT_KEY = "limit";
|
/**
|
* 排序字段 KEY
|
*/
|
public static final String PAGE_SORT_KEY = "sort";
|
/**
|
* 排序方向 KEY
|
*/
|
public static final String PAGE_ORDER_KEY = "order";
|
|
/**
|
* 客户端ID KEY
|
*/
|
public static final String SIGN_APP_ID_KEY = "app_id";
|
|
/**
|
* 客户端秘钥 KEY
|
*/
|
public static final String SIGN_SECRET_KEY = "SECRET_KEY";
|
|
/**
|
* 随机字符串 KEY
|
*/
|
public static final String SIGN_NONCE_KEY = "NONCE";
|
/**
|
* 时间戳 KEY
|
*/
|
public static final String SIGN_TIMESTAMP_KEY = "timestamp";
|
/**
|
* 签名类型 KEY
|
*/
|
public static final String SIGN_SIGN_TYPE_KEY = "SIGN_TYPE";
|
/**
|
* 签名结果 KEY
|
*/
|
public static final String SIGN_SIGN_KEY = "sign";
|
/**
|
* logo缩略图默认宽
|
*/
|
public static final Integer TH_IMG_WIDTH = 300;
|
/**
|
* logo缩略图默认高
|
*/
|
public static final Integer TH_IMG_HEIGHT = 150;
|
/**
|
* 生成缩略图需要的图片暂存目录
|
*/
|
// public static final String TEMP_IMAGE_PATH="D:/resources/images/";
|
public static final String TEMP_IMAGE_PATH="/root/kidgrow";
|
/**
|
* 普通医生角色ID
|
*/
|
public static final Long HOSPITAL_DOCTOR_ID=1268826800663289858L;
|
/**
|
* 普通医生角色code标识`
|
*/
|
public static final String HOSPITAL_DOCTOR_CODE="hospital_doctor";
|
|
/**
|
* 管理员医生角色ID
|
*/
|
public static final Long HOSPITAL_ADMIN_ID=1238826800663299909L;
|
/**
|
* 管理员医生角色code标识
|
*/
|
public static final String HOSPITAL_ADMIN_CODE="hospital_admin";
|
|
/**
|
* 自主注册医院的组织id
|
*/
|
public static final Long HOSPITAL_ORG_ID=15321234570L;
|
|
/**
|
* 自主注册的科室组织id
|
*/
|
public static final Long DEPARTMENT_ORG_ID=15321234571L;
|
/**
|
* 自主注册的用户默认给的产品id
|
*/
|
public static final Long REG_USER_PRODUCT_ID=1000000000000000001L;
|
/**
|
* 自主注册的用户合同时长 天
|
*/
|
public static final Integer REG_USER_CONTRACT_DAY=15;
|
/**
|
* 自主注册的用户合同名
|
*/
|
public static final String REG_USER_CONTRACT_NAME="注册用户免费合同";
|
/**
|
* 自主注册的创建人id
|
*/
|
public static final Long CREATE_USER_ID= 0L;
|
/**
|
* 自主注册的创建人名称
|
*/
|
public static final String CREATE_USER_NAME= "自动创建";
|
/**
|
* 管理员角色code标识
|
*/
|
public static final String SYSTEM_ADMIN_ROLE_CODE="admin";
|
|
/**
|
* 销售主管角色code标识
|
*/
|
public static final String SALE_MANAGER_ROLE_CODE="salemanager";
|
|
/**
|
* 喜高PC高管角色code标识
|
*/
|
public static final String PC_ADMIN_ROLE_CODE="pc_admin";
|
/**
|
* 喜高运营高管角色code标识
|
*/
|
public static final String OPRATIONMANAGER_ROLE_CODE="oprationmanager";
|
|
/**
|
* 集团组织级别
|
*/
|
public static final Integer SYSTEM_ORG_TOP_CODE=0;
|
/**
|
* 公司/医院组织级别
|
*/
|
public static final Integer SYSTEM_ORG_HOS_LEVEL=1;
|
/**
|
* 科室部门组织级别
|
*/
|
public static final Integer SYSTEM_ORG_DEP_LEVEL=2;
|
/**
|
* 医生类型 C+H
|
*/
|
public static final Integer CH_DOCTOR_TYPE=0;
|
/**
|
* 医生类型 H
|
*/
|
public static final Integer H_DOCTOR_TYPE=1;
|
/**
|
* 医生类型 C
|
*/
|
public static final Integer C_DOCTOR_TYPE=2;
|
/**
|
* 一个科室能最大试用多少次
|
*/
|
public static final Integer MAX_FREE_COUNT=5;
|
}
|