From d7a58eb17814af2a16ee13afaf93acda09745ed9 Mon Sep 17 00:00:00 2001 From: bingbing <zhaobingliang@aliyun.com> Date: Wed, 22 Jul 2020 22:10:35 +0800 Subject: [PATCH] Merge branch 'dev' of http://192.168.2.240:7070/r/kidgrow-microservices-platform into dev --- kidgrow-commons/kidgrow-common-spring-boot-starter/src/main/java/com/kidgrow/common/constant/CommonConstant.java | 95 ++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 93 insertions(+), 2 deletions(-) diff --git a/kidgrow-commons/kidgrow-common-spring-boot-starter/src/main/java/com/kidgrow/common/constant/CommonConstant.java b/kidgrow-commons/kidgrow-common-spring-boot-starter/src/main/java/com/kidgrow/common/constant/CommonConstant.java index fd76c6f..a17380d 100644 --- a/kidgrow-commons/kidgrow-common-spring-boot-starter/src/main/java/com/kidgrow/common/constant/CommonConstant.java +++ b/kidgrow-commons/kidgrow-common-spring-boot-starter/src/main/java/com/kidgrow/common/constant/CommonConstant.java @@ -35,6 +35,10 @@ * 客户端IP */ String USER_AGENT_IP="user_agent_ip"; + /** + * 客户端屏幕分辨率 + */ + String USER_AGENT_SYSTEM_SCREEN="user_agent_system_screen"; /** * 标签 header key @@ -110,11 +114,20 @@ 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参数 */ @@ -226,4 +239,82 @@ * 签名结果 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/data"; + /** + * 普通医生角色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=9L; + /** + * 管理员医生角色code标识 + */ + public static final String HOSPITAL_ADMIN_CODE="hospital_admin"; + + /** + * 自主注册医院的组织id + */ + public static final Long HOSPITAL_ORG_ID=1273809987709677569L; + + /** + * 自主注册的科室组织id + */ + public static final Long DEPARTMENT_ORG_ID=1273810374550335490L; + + /** + * 自主注册的创建人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"; + + /** + * 集团组织级别 + */ + 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; } -- Gitblit v1.8.0