course.js 5.0 KB

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