enum.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. "STUDENT_BOOK": 5,
  61. "INTEGRAL_RULE": 6,
  62. }
  63. const scoreLogics = {
  64. "PLUS": 0,
  65. "REDUCE": 1,
  66. }
  67. const studentTypes = {
  68. "NONE": -1,
  69. "COMMUNITY_WORKER": 0,
  70. "OTHER": 1,
  71. "STREET_WORK": 2,
  72. // "NATIONAL_TRAINING": 3,
  73. // 非社区工作者
  74. "UN_COMMUNITY_WORKER": 3,
  75. // 游客
  76. "VISITOR" : 10
  77. }
  78. const checkStatus = {
  79. "SIGNEDIN": 1,
  80. "DEFAULT": 2,
  81. "LATE": 3,
  82. "LEAVE": 4,
  83. "ABSENTEEISM": 5,
  84. }
  85. const communityDetailTypes = {
  86. "COMMUNITY": 0,
  87. "CLASS": 1,
  88. }
  89. const videoTypes = {
  90. "COMMON": 0,
  91. "SCORE": 1
  92. }
  93. const weekTypes = {
  94. 1: '周一',
  95. 2: '周二',
  96. 3: '周三',
  97. 4: '周四',
  98. 5: '周五',
  99. 6: '周六',
  100. 0: '周日',
  101. }
  102. const sexTexts = {
  103. 0: "男",
  104. 1: "女",
  105. 2: "未知",
  106. };
  107. const verifyTypes = {
  108. "CHECK_IN": 0,
  109. "REPORT": 1,
  110. }
  111. const courseTypes = {
  112. "BASE": 1,
  113. "OFFLINE": 2,
  114. "RECORD": 3,
  115. "LIVE": 11,
  116. "PLAYBACK": 12,
  117. }
  118. const courseTypeTexts = {
  119. 1: "基地课",
  120. // 2: "线下课程",
  121. 2: "面授课",
  122. 3: "录播课",
  123. 11: '直播课',
  124. 12: '直播回放',
  125. }
  126. const liveSources = {
  127. "DEFAULT": 0,
  128. "GUEST": 1,
  129. }
  130. const courseProcess = {
  131. "NO_BEGIGN": 0,
  132. "END": 1,
  133. "COMPLETE": 2,
  134. }
  135. const JiLinProvince = {
  136. "CODE_START": '22',
  137. "ID": 'db8ad5e5977540d29a4eb7b57c1e2f7b'
  138. }
  139. const teamState = {
  140. "UNSTART": '0',
  141. "ONGOING": '1',
  142. "END": '2'
  143. }
  144. const LOG_TAGS = {
  145. LIVE: 'trtc-tim'
  146. }
  147. export {
  148. liveStatus, logicStatus, formTypes, cardTypes, courseStatus, examTypes, classStatus, uploadResTypes,
  149. examCategorys, questionTypes, questionTypeTexts, htmlTypes, scoreLogics, studentTypes, checkStatus,
  150. communityDetailTypes, videoTypes, weekTypes, sexTexts, verifyTypes, courseTypes, courseTypeTexts,
  151. liveSources, courseProcess, JiLinProvince, teamState, LOG_TAGS
  152. }