course.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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/'+data,
  114. method: 'get'
  115. })
  116. },
  117. courseGoodsRebuildStatus(data) {
  118. return myRequest({
  119. url: '/course/goodsRebuildStatus',
  120. method: 'get',
  121. data:data
  122. })
  123. },
  124. faceCertificationIDCardOCR(data) {
  125. return myRequest({
  126. url: '/face/certification/IDCardOCR',
  127. method: 'post',
  128. data:data
  129. })
  130. },
  131. facCertificationImageRecognition(data) {
  132. return myRequest({
  133. url: '/face/certification/ImageRecognition',
  134. method: 'post',
  135. data:data
  136. })
  137. },
  138. faceCertificationIdCardCompareFace(data) {
  139. return myRequest({
  140. url: '/face/certification/idCardCompareFace',
  141. method: 'post',
  142. data:data
  143. })
  144. },
  145. faceCertificationCompareFace(data) {
  146. return myRequest({
  147. url: '/face/certification/CompareFace',
  148. method: 'post',
  149. data:data
  150. })
  151. },
  152. gradeCheckGoodsStudy(data) {
  153. return myRequest({
  154. url: '/grade/grade/checkGoodsStudy',
  155. method: 'get',
  156. data:data
  157. })
  158. },
  159. polyvLiveHistoryChatMsgList(data) {
  160. return myRequest({
  161. url: '/polyv/live/historyChatMsgList',
  162. method: 'get',
  163. data:data
  164. })
  165. },
  166. studyRecordQueryLiveLast(data) {
  167. return myRequest({
  168. url: '/study/record/queryLiveLast',
  169. method: 'get',
  170. data:data
  171. })
  172. },
  173. courseMajorList (data) {
  174. return myRequest({
  175. url: '/course/major/list',
  176. method: 'get',
  177. data:data
  178. })
  179. },
  180. // 学习中心的直播课列表
  181. getgoodsLiveList (data) {
  182. return myRequest({
  183. url: '/goods/getLiveList',
  184. method: 'get',
  185. data: data,
  186. compleLoading: true
  187. })
  188. },
  189. // 查询用户拥有视频+直播商品
  190. listUserVideoLive (data) {
  191. return myRequest({
  192. url: '/goods/listUserVideoLive',
  193. method: 'get',
  194. data: data,
  195. compleLoading: true
  196. })
  197. },
  198. reSectionExamList(data) {
  199. return myRequest({
  200. url: '/course/sectionExamList',
  201. method: 'get',
  202. data: data
  203. })
  204. },
  205. }