|
@@ -1,10 +1,3 @@
|
|
-/*
|
|
|
|
- * *************************************************
|
|
|
|
- * Copyright (c) 2018 QMTH. All Rights Reserved.
|
|
|
|
- * Created by Deason on 2018-08-24 11:34:17.
|
|
|
|
- * *************************************************
|
|
|
|
- */
|
|
|
|
-
|
|
|
|
package cn.com.qmth.examcloud.support;
|
|
package cn.com.qmth.examcloud.support;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -15,52 +8,36 @@ package cn.com.qmth.examcloud.support;
|
|
*/
|
|
*/
|
|
public interface Constants {
|
|
public interface Constants {
|
|
|
|
|
|
- /**
|
|
|
|
- * 系统错误
|
|
|
|
- */
|
|
|
|
- String OE_CODE_500 = "000500";
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 参数错误
|
|
* 参数错误
|
|
*/
|
|
*/
|
|
String OE_CODE_400 = "000400";
|
|
String OE_CODE_400 = "000400";
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 权限错误
|
|
|
|
|
|
+ * 考试控制锁_{studentId}
|
|
*/
|
|
*/
|
|
- String OE_CODE_403 = "000403";
|
|
|
|
|
|
+ String EXAM_CONTROL_LOCK_PREFIX = "$oe_lock:student_id_";
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 考试控制锁
|
|
|
|
|
|
+ * 考试交卷锁前缀_{examRecordDataId}
|
|
*/
|
|
*/
|
|
- String EXAM_CONTROL_LOCK_PREFIX = "oe_student:exam_control_lock_studentid_";
|
|
|
|
|
|
+ String HAND_IN_EXAM_LOCK_PREFIX = "$oe_lock:hand_in_exam_";
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 考试同步控制锁
|
|
|
|
|
|
+ * 获取人脸活体检测基本信息前缀_{studentId}
|
|
*/
|
|
*/
|
|
- String EXAM_SYNC_CONTROL_LOCK_PREFIX = "oe_student:exam_sync_control_lock_studentid_";
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 考试交卷锁前缀
|
|
|
|
- */
|
|
|
|
- String HAND_IN_EXAM_LOCK_PREFIX = "oe_student:hand_in_exam_lock_";
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 获取人脸活体检测基本信息前缀
|
|
|
|
- */
|
|
|
|
- String GET_FACE_BIOPSY_INFO_PREFIX = "oe_student:get_face_biopsy_info_lock_";
|
|
|
|
|
|
+ String GET_FACE_BIOPSY_INFO_PREFIX = "$oe_lock:get_face_biopsy_info_";
|
|
|
|
|
|
/**
|
|
/**
|
|
* 人脸比对控制锁_{examRecordDataId}
|
|
* 人脸比对控制锁_{examRecordDataId}
|
|
*/
|
|
*/
|
|
- String FACE_COMPARE_LOCK_PREFIX = "$oe:lock_face_compare_";
|
|
|
|
|
|
+ String FACE_COMPARE_LOCK_PREFIX = "$oe_lock:face_compare_";
|
|
|
|
|
|
/**
|
|
/**
|
|
* 考试数据清理锁
|
|
* 考试数据清理锁
|
|
*/
|
|
*/
|
|
- String EXAM_DATA_CLEAN_LOCK_PREFIX = "exam_data_clean";
|
|
|
|
|
|
+ String EXAM_DATA_CLEAN_LOCK_PREFIX = "$oe_lock:exam_data_clean";
|
|
|
|
|
|
- //
|
|
|
|
String ERROR_MSG = "error_message";
|
|
String ERROR_MSG = "error_message";
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -68,19 +45,6 @@ public interface Constants {
|
|
*/
|
|
*/
|
|
String OE_STUDENT_EXAM_SESSION_PREFIX = "oe_student:exam_session_";
|
|
String OE_STUDENT_EXAM_SESSION_PREFIX = "oe_student:exam_session_";
|
|
|
|
|
|
- String EXAM_CAPTURE_QUEUE_LOCK_PREFIX = "oe_student:exam_capture_queue_lock_";
|
|
|
|
-
|
|
|
|
- // 缓存
|
|
|
|
- String CACHE_EXAM_STUDENT_PREFIX = "cache_examStudent_";
|
|
|
|
-
|
|
|
|
- String CACHE_PHONE_PREFIX = "cache_phone_";
|
|
|
|
-
|
|
|
|
- String CACHE_STUDENT_PREFIX = "cache_student_";
|
|
|
|
-
|
|
|
|
- String CACHE_ORG_PREFIX = "cache_org_";
|
|
|
|
-
|
|
|
|
- String CACHE_COURSE_PREFIX = "cache_course_";
|
|
|
|
-
|
|
|
|
String isTrue = "true";
|
|
String isTrue = "true";
|
|
|
|
|
|
String isFalse = "false";
|
|
String isFalse = "false";
|