enum.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. const liveStatus = {
  2. "NOLIVE": 0,
  3. "LIVING": 1,
  4. "LIVEEND": 2,
  5. }
  6. const logicStatus = {
  7. "NO": 0,
  8. "YES": 1,
  9. }
  10. const formTypes = {
  11. "NEEDS": "发布培训需求",
  12. "HOT": "发布热点难点",
  13. "TYPICAL": "发布选树典型",
  14. "DYNAMIC": "发布动态",
  15. }
  16. const cardTypes = {
  17. "NUMBER_STYLE": 0,
  18. "TEXT_STYLE": 1,
  19. }
  20. const courseStatus = {
  21. "NO_START": 0,
  22. "START": 1,
  23. "COMPLETE": 2,
  24. }
  25. const examTypes = {
  26. "EXAM": 0,
  27. "QUESTION": 1,
  28. }
  29. const examCategorys = {
  30. 0: '随堂问卷',
  31. 1: '调查问卷',
  32. 2: '综合问卷',
  33. }
  34. const classStatus = {
  35. "NO_START": 0,
  36. "RUNNING": 1,
  37. "HISTORY": 2,
  38. "MY_HISTORY": 3,
  39. }
  40. const uploadResTypes = {
  41. "IMAGE": 1,
  42. "VIDEO": 2,
  43. }
  44. const questionTypes = {
  45. "SINGLE": 0,
  46. "MULTIPLE": 1,
  47. "WRITE": 2,
  48. }
  49. const questionTypeTexts = {
  50. 0: '单选',
  51. 1: '多选',
  52. 2: '简答',
  53. }
  54. const htmlTypes = {
  55. "BANNER": 0,
  56. "NEWS": 1,
  57. "COURSE": 2,
  58. "HELP": 3,
  59. "SEAT": 4,
  60. }
  61. const scoreLogics = {
  62. "PLUS": 0,
  63. "REDUCE": 1,
  64. }
  65. const studentTypes = {
  66. "NONE": -1,
  67. "COMMUNITY_WORKER": 0,
  68. "OTHER": 1,
  69. "STREET_WORK": 2,
  70. "NATIONAL_TRAINING": 3,
  71. }
  72. const checkStatus = {
  73. "SIGNEDIN": 1,
  74. "DEFAULT": 2,
  75. "LATE": 3,
  76. "LEAVE": 4,
  77. "ABSENTEEISM": 5,
  78. }
  79. const communityDetailTypes = {
  80. "COMMUNITY": 0,
  81. "CLASS": 1,
  82. }
  83. const videoTypes = {
  84. "COMMON": 0,
  85. "SCORE": 1
  86. }
  87. const weekTypes = {
  88. 1: '周一',
  89. 2: '周二',
  90. 3: '周三',
  91. 4: '周四',
  92. 5: '周五',
  93. 6: '周六',
  94. 0: '周日',
  95. }
  96. const sexTexts = {
  97. 0: "男",
  98. 1: "女",
  99. 2: "未知",
  100. };
  101. const verifyTypes = {
  102. "CHECK_IN": 0,
  103. "REPORT": 1,
  104. }
  105. const courseTypes = {
  106. "BASE": 1,
  107. "OFFLINE": 2,
  108. "RECORD": 3,
  109. "LIVE": 11,
  110. "PLAYBACK": 12,
  111. }
  112. const courseTypeTexts = {
  113. 1: "基地课",
  114. 2: "线下课程",
  115. 3: "录播课",
  116. 11: '直播课',
  117. 12: '直播回放',
  118. }
  119. const liveSources = {
  120. "DEFAULT": 0,
  121. "GUEST": 1,
  122. }
  123. const courseProcess = {
  124. "NO_BEGIGN": 0,
  125. "END": 1,
  126. "COMPLETE": 2,
  127. }
  128. export {
  129. liveStatus, logicStatus, formTypes, cardTypes, courseStatus, examTypes, classStatus, uploadResTypes,
  130. examCategorys, questionTypes, questionTypeTexts, htmlTypes, scoreLogics, studentTypes, checkStatus,
  131. communityDetailTypes, videoTypes, weekTypes, sexTexts, verifyTypes, courseTypes, courseTypeTexts,
  132. liveSources, courseProcess
  133. }