collect.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. import {
  2. myRequest
  3. } from '../request.js'
  4. export default {
  5. //新增收藏课程
  6. coursecollect(data) {
  7. return myRequest({
  8. url: '/collect/course',
  9. method: 'post',
  10. data: data,
  11. })
  12. },
  13. //删除收藏课程
  14. deletecoursecollect(data) {
  15. return myRequest({
  16. url: '/collect/course/delete/' + data,
  17. method: 'post',
  18. })
  19. },
  20. //判断是否收藏课程
  21. coursecollectPD(data) {
  22. return myRequest({
  23. url: '/collect/course/' + data,
  24. method: 'get',
  25. })
  26. },
  27. //查询收藏课程列表
  28. courseCollectList(data) {
  29. return myRequest({
  30. url: '/collect/course/list',
  31. method: 'get',
  32. data: data,
  33. })
  34. },
  35. //新增收藏题库
  36. bankCollectsadd(data) {
  37. return myRequest({
  38. url: '/collect/bank',
  39. method: 'post',
  40. data: data,
  41. })
  42. },
  43. //删除收藏题库
  44. bankCollectdelete(data) {
  45. return myRequest({
  46. url: '/collect/bank/delete/' + data,
  47. method: 'post',
  48. })
  49. },
  50. //查询收藏题库列表
  51. bankCollectList(data) {
  52. return myRequest({
  53. url: '/collect/bank/list',
  54. method: 'get',
  55. data: data,
  56. })
  57. },
  58. //判断是否收藏题库
  59. bankCollects(data) {
  60. return myRequest({
  61. url: '/collect/bank/' + data,
  62. method: 'get',
  63. })
  64. },
  65. //新增收藏考试重点
  66. noteCollectsadd(data) {
  67. return myRequest({
  68. url: '/collect/note',
  69. method: 'post',
  70. data: data,
  71. })
  72. },
  73. //删除收藏考试重点
  74. noteCollectdelete(data) {
  75. return myRequest({
  76. url: '/collect/note/delete/' + data,
  77. method: 'post',
  78. })
  79. },
  80. //查询收藏重点列表
  81. courseNoteList(data) {
  82. return myRequest({
  83. url: '/collect/note/list',
  84. method: 'get',
  85. data: data,
  86. })
  87. },
  88. //判断是否收藏重点
  89. noteCollects(data) {
  90. return myRequest({
  91. url: '/collect/note/' + data,
  92. method: 'get',
  93. })
  94. },
  95. //新增收藏题目
  96. questionsystemadd(data) {
  97. return myRequest({
  98. url: '/collect/question',
  99. method: 'post',
  100. data: data,
  101. })
  102. },
  103. //删除收藏题目
  104. questionsystemdelete(data) {
  105. return myRequest({
  106. url: '/collect/question/delete/' + data,
  107. method: 'post',
  108. })
  109. },
  110. //查询收藏题目列表
  111. systemquestionList(data) {
  112. return myRequest({
  113. url: '/collect/question/list',
  114. method: 'get',
  115. data: data,
  116. })
  117. },
  118. //获取收藏题目详细信息
  119. questionsystems(data) {
  120. return myRequest({
  121. url: '/collect/question/' + data,
  122. method: 'get',
  123. })
  124. },
  125. //查询用户错题历史列表
  126. questionListrecord(data) {
  127. return myRequest({
  128. url: '/bank/question/record/list',
  129. method: 'get',
  130. data: data,
  131. })
  132. },
  133. //查询用户的做题历史列表
  134. questionListrecordDoneList(data) {
  135. return myRequest({
  136. url: '/bank/question/record/doneList',
  137. method: 'get',
  138. data: data,
  139. })
  140. }
  141. }