SettingKey.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package com.qxgmat.data.constants.enums;
  2. import com.qxgmat.data.constants.enums.module.PaperModule;
  3. import com.qxgmat.data.constants.enums.module.QuestionModule;
  4. /**
  5. * Created by gaojie on 2017/11/19.
  6. */
  7. public enum SettingKey {
  8. INDEX("index"), // 首页设置
  9. SENTENCE("sentence"), // 长难句目录
  10. MESSAGE_TEMPLATE("message_template"), // 消息模版
  11. PLACE("place"), // 难点设置
  12. EXERCISE_TIME("exercise_time"), // 练习题目时间
  13. EXERCISE_PAPER_AUTO("exercise_paper_auto"), // 自动组卷设置
  14. EXAMINATION_TIME("examination_time"), // 考试时间
  15. FILTER_TIME("filter_time"), // 题目剔除时间
  16. PREPARE_INFO("prepare_info"), // 备考统计信息
  17. EXERCISE_PAPER_STATUS("exercise_paper_status"), // 练习自动组卷状态:process进度,finish时间
  18. SENTENCE_PAPER_STATUS("sentence_paper_status"), // 长难句自动组卷状态:process进度,finish时间
  19. SENTENCE_TIME("sentence_time"), // 长难句题目时间
  20. TEXTBOOK_TIME("textbook_time"), // 机经题目时间
  21. SCORE_SWITCH("score_switch"), // 分数开关
  22. SERVICE_QX_CAT("service_qx_cat"), // 千行CAT服务信息
  23. SERVICE_TEXTBOOK("service_textbook"), // 数学机经服务信息
  24. SERVICE_VIP("service_vip"), // vip服务信息
  25. COURSE_INDEX("course_index"), // 课程首页设置
  26. PROMOTE("course_promote"), // 促销
  27. EXPERIENCE_INFO("experience_info"), // 心经信息
  28. SENTENCE_INFO("sentence_info"), // 长难句信息
  29. TIPS("tips"); // 页面提示信息
  30. final static public String message = "设置key";
  31. public String key;
  32. private SettingKey(String key){
  33. this.key = key;
  34. }
  35. /**
  36. * 查找服务对应配置信息
  37. * @param key
  38. * @return
  39. */
  40. public static SettingKey WithService(ServiceKey key){
  41. switch(key){
  42. case VIP:
  43. return SERVICE_VIP;
  44. case TEXTBOOK:
  45. return SERVICE_TEXTBOOK;
  46. case QX_CAT:
  47. return SERVICE_QX_CAT;
  48. }
  49. return null;
  50. }
  51. }