course.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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. data: data,
  67. noToken: true
  68. })
  69. },
  70. sectionList(data) {
  71. return myRequest({
  72. url: '/app/common/course/sectionList/'+data,
  73. method: 'get',
  74. data: data,
  75. noToken: true
  76. })
  77. },
  78. courseGoodsList(data) {
  79. return myRequest({
  80. url: '/course/goodsList',
  81. method: 'get',
  82. data: data
  83. })
  84. },
  85. courseCourseList(data) {
  86. return myRequest({
  87. url: '/course/courseList',
  88. method: 'get',
  89. data: data
  90. })
  91. },
  92. //商品双师资模板
  93. courseTeacherList(data) {
  94. return myRequest({
  95. url: '/goods/course/teacher/list',
  96. method: 'get',
  97. data: data
  98. })
  99. },
  100. courseDetail(data) {
  101. return myRequest({
  102. url: '/course/'+data,
  103. method: 'get'
  104. })
  105. },
  106. courseBusiness(data) {
  107. return myRequest({
  108. url: '/app/common/course/business/'+data,
  109. method: 'get',
  110. noToken:true
  111. })
  112. },
  113. courseHandouts(data) {
  114. return myRequest({
  115. url: '/course/handouts/'+data,
  116. method: 'get'
  117. })
  118. },
  119. courseGoodsRebuildStatus(data) {
  120. return myRequest({
  121. url: '/course/goodsRebuildStatus',
  122. method: 'get',
  123. data:data
  124. })
  125. },
  126. faceCertificationIDCardOCR(data) {
  127. return myRequest({
  128. url: '/face/certification/IDCardOCR',
  129. method: 'post',
  130. data:data
  131. })
  132. },
  133. facCertificationImageRecognition(data) {
  134. return myRequest({
  135. url: '/face/certification/ImageRecognition',
  136. method: 'post',
  137. data:data
  138. })
  139. },
  140. faceCertificationIdCardCompareFace(data) {
  141. return myRequest({
  142. url: '/face/certification/idCardCompareFace',
  143. method: 'post',
  144. data:data
  145. })
  146. },
  147. faceCertificationCompareFace(data) {
  148. return myRequest({
  149. url: '/face/certification/CompareFace',
  150. method: 'post',
  151. data:data
  152. })
  153. },
  154. gradeCheckGoodsStudy(data) {
  155. return myRequest({
  156. url: '/grade/grade/checkGoodsStudy',
  157. method: 'get',
  158. data:data
  159. })
  160. },
  161. polyvLiveHistoryChatMsgList(data) {
  162. return myRequest({
  163. url: '/polyv/live/historyChatMsgList',
  164. method: 'get',
  165. data:data
  166. })
  167. },
  168. studyRecordQueryLiveLast(data) {
  169. return myRequest({
  170. url: '/study/record/queryLiveLast',
  171. method: 'get',
  172. data:data
  173. })
  174. },
  175. courseMajorList (data) {
  176. return myRequest({
  177. url: '/course/major/list',
  178. method: 'get',
  179. data:data
  180. })
  181. },
  182. // 学习中心的直播课列表
  183. getgoodsLiveList (data) {
  184. return myRequest({
  185. url: '/goods/getLiveList',
  186. method: 'get',
  187. data:data
  188. })
  189. },
  190. // 查询用户拥有视频+直播商品
  191. listUserVideoLive (data) {
  192. return myRequest({
  193. url: '/goods/listUserVideoLive',
  194. method: 'get',
  195. data:data
  196. })
  197. },
  198. reSectionExamList(data) {
  199. return myRequest({
  200. url: '/course/sectionExamList',
  201. method: 'get',
  202. data: data
  203. })
  204. },
  205. }