course.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. import {
  2. myRequest
  3. } from '../request.js'
  4. export default {
  5. polyvSign(data) {
  6. return myRequest({
  7. url: '/polyv/video/sign/auth',
  8. method: 'get',
  9. data: data
  10. })
  11. },
  12. recordLast(data) {
  13. return myRequest({
  14. url: '/study/record/last',
  15. method: 'get',
  16. data: data
  17. })
  18. },
  19. menuExamList(data) {
  20. return myRequest({
  21. url: '/course/menu/exam/list',
  22. method: 'get',
  23. data: data
  24. })
  25. },
  26. reSectionList(data) {
  27. return myRequest({
  28. url: '/course/sectionList',
  29. method: 'get',
  30. data: data
  31. })
  32. },
  33. reChapterList(data) {
  34. return myRequest({
  35. url: '/course/chapterList',
  36. method: 'get',
  37. data: data
  38. })
  39. },
  40. appBeforeAddress(data) {
  41. return myRequest({
  42. url: '/app/before/address',
  43. method: 'get',
  44. data: data
  45. })
  46. },
  47. reMenuList(data) {
  48. return myRequest({
  49. url: '/course/menuList',
  50. method: 'get',
  51. data: data
  52. })
  53. },
  54. menuList(data) {
  55. return myRequest({
  56. url: '/app/common/course/menuList',
  57. method: 'get',
  58. data: data,
  59. noToken: true
  60. })
  61. },
  62. chapterList(data) {
  63. return myRequest({
  64. url: '/app/common/course/chapterList/' + data,
  65. method: 'get',
  66. noToken: true
  67. })
  68. },
  69. sectionList(data) {
  70. return myRequest({
  71. url: '/app/common/course/sectionList/' + data,
  72. method: 'get',
  73. noToken: true
  74. })
  75. },
  76. courseGoodsList(data) {
  77. return myRequest({
  78. url: '/course/goodsList',
  79. method: 'get',
  80. data: data
  81. })
  82. },
  83. courseCourseList(data) {
  84. return myRequest({
  85. url: '/course/courseList',
  86. method: 'get',
  87. data: data
  88. })
  89. },
  90. //商品双师资模板
  91. courseTeacherList(data) {
  92. return myRequest({
  93. url: '/goods/course/teacher/list',
  94. method: 'get',
  95. data: data
  96. })
  97. },
  98. courseDetail(data) {
  99. return myRequest({
  100. url: '/course/' + data,
  101. method: 'get'
  102. })
  103. },
  104. courseBusiness(data) {
  105. return myRequest({
  106. url: '/app/common/course/business/' + data,
  107. method: 'get',
  108. noToken: true
  109. })
  110. },
  111. courseHandouts(data) {
  112. return myRequest({
  113. url: '/course/handouts/file/detail' ,
  114. method: 'get',
  115. data
  116. })
  117. },
  118. getHandoutList(data) {
  119. return myRequest({
  120. url: '/course/handouts/listByGoods',
  121. method: 'get',
  122. data: data
  123. })
  124. },
  125. courseGoodsRebuildStatus(data) {
  126. return myRequest({
  127. url: '/course/goodsRebuildStatus',
  128. method: 'get',
  129. data: data
  130. })
  131. },
  132. faceCertificationIDCardOCR(data) {
  133. return myRequest({
  134. url: '/face/certification/IDCardOCR',
  135. method: 'post',
  136. data: data
  137. })
  138. },
  139. facCertificationImageRecognition(data) {
  140. return myRequest({
  141. url: '/face/certification/ImageRecognition',
  142. method: 'post',
  143. data: data
  144. })
  145. },
  146. faceCertificationIdCardCompareFace(data) {
  147. return myRequest({
  148. url: '/face/certification/idCardCompareFace',
  149. method: 'post',
  150. data: data
  151. })
  152. },
  153. faceCertificationCompareFace(data) {
  154. return myRequest({
  155. url: '/face/certification/CompareFace',
  156. method: 'post',
  157. data: data
  158. })
  159. },
  160. gradeCheckGoodsStudy(data) {
  161. return myRequest({
  162. url: '/grade/grade/checkGoodsStudy',
  163. method: 'get',
  164. data: data
  165. })
  166. },
  167. polyvLiveHistoryChatMsgList(data) {
  168. return myRequest({
  169. url: '/polyv/live/historyChatMsgList',
  170. method: 'get',
  171. data: data
  172. })
  173. },
  174. studyRecordQueryLiveLast(data) {
  175. return myRequest({
  176. url: '/study/record/queryLiveLast',
  177. method: 'get',
  178. data: data
  179. })
  180. },
  181. courseMajorList(data) {
  182. return myRequest({
  183. url: '/course/major/list',
  184. method: 'get',
  185. data: data
  186. })
  187. },
  188. // 学习中心的直播课列表
  189. getgoodsLiveList(data) {
  190. return myRequest({
  191. url: '/goods/getLiveList',
  192. method: 'get',
  193. data: data,
  194. compleLoading: true
  195. })
  196. },
  197. // 查询用户拥有视频+直播商品
  198. listUserVideoLive(data) {
  199. return myRequest({
  200. url: '/goods/listUserVideoLive',
  201. method: 'get',
  202. data: data,
  203. compleLoading: true
  204. })
  205. },
  206. reSectionExamList(data) {
  207. return myRequest({
  208. url: '/course/sectionExamList',
  209. method: 'get',
  210. data: data
  211. })
  212. },
  213. // 二建二造检测必修是否学完
  214. checkFinishRequiredCourse(data) {
  215. return myRequest({
  216. url: '/grade/grade/checkFinishRequiredCourse',
  217. method: 'get',
  218. data: data
  219. })
  220. },
  221. }