collect.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. courseNoteList(data) {
  67. return myRequest({
  68. url: '/collect/note/list',
  69. method: 'get',
  70. data: data,
  71. })
  72. },
  73. //新增收藏题目
  74. questionsystemadd(data) {
  75. return myRequest({
  76. url: '/system/question',
  77. method: 'post',
  78. data: data,
  79. })
  80. },
  81. //删除收藏题目
  82. questionsystemdelete(data) {
  83. return myRequest({
  84. url: '/system/question/delete/' + data,
  85. method: 'post',
  86. })
  87. },
  88. //查询收藏题目列表
  89. systemquestionList(data) {
  90. return myRequest({
  91. url: '/system/question/list',
  92. method: 'get',
  93. data: data,
  94. })
  95. },
  96. //获取收藏题目详细信息
  97. questionsystems(data) {
  98. return myRequest({
  99. url: '/system/question/' + data,
  100. method: 'get',
  101. })
  102. },
  103. //查询用户错题历史列表
  104. questionListrecord(data) {
  105. return myRequest({
  106. url: '/bank/question/record/list',
  107. method: 'get',
  108. data: data,
  109. })
  110. },
  111. }