12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- package com.qxgmat.data.constants.enums;
- import com.qxgmat.data.constants.enums.module.PaperModule;
- import com.qxgmat.data.constants.enums.module.QuestionModule;
- /**
- * Created by gaojie on 2017/11/19.
- */
- public enum SettingKey {
- INDEX("index"), // 首页设置
- SENTENCE("sentence"), // 长难句目录
- MESSAGE_TEMPLATE("message_template"), // 消息模版
- PLACE("place"), // 难点设置
- EXERCISE_TIME("exercise_time"), // 练习题目时间
- EXERCISE_PAPER_AUTO("exercise_paper_auto"), // 自动组卷设置
- EXAMINATION_TIME("examination_time"), // 考试时间
- FILTER_TIME("filter_time"), // 题目剔除时间
- PREPARE_INFO("prepare_info"), // 备考统计信息
- EXERCISE_PAPER_STATUS("exercise_paper_status"), // 练习自动组卷状态:process进度,finish时间
- SENTENCE_PAPER_STATUS("sentence_paper_status"), // 长难句自动组卷状态:process进度,finish时间
- SENTENCE_TIME("sentence_time"), // 长难句题目时间
- TEXTBOOK_TIME("textbook_time"), // 机经题目时间
- SCORE_SWITCH("score_switch"), // 分数开关
- SERVICE_QX_CAT("service_qx_cat"), // 千行CAT服务信息
- SERVICE_TEXTBOOK("service_textbook"), // 数学机经服务信息
- SERVICE_VIP("service_vip"), // vip服务信息
- COURSE_INDEX("course_index"), // 课程首页设置
- PROMOTE("course_promote"), // 促销
- EXPERIENCE_INFO("experience_info"), // 心经信息
- SENTENCE_INFO("sentence_info"), // 长难句信息
- TIPS("tips"); // 页面提示信息
- final static public String message = "设置key";
- public String key;
- private SettingKey(String key){
- this.key = key;
- }
- /**
- * 查找服务对应配置信息
- * @param key
- * @return
- */
- public static SettingKey WithService(ServiceKey key){
- switch(key){
- case VIP:
- return SERVICE_VIP;
- case TEXTBOOK:
- return SERVICE_TEXTBOOK;
- case QX_CAT:
- return SERVICE_QX_CAT;
- }
- return null;
- }
- }
|