bank.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. import {
  2. myRequest
  3. } from '../request.js'
  4. export default {
  5. banklist(data) {
  6. return myRequest({
  7. url: '/app/common/bank/list',
  8. method: 'get',
  9. data: data,
  10. noToken:true
  11. })
  12. },
  13. //题库推荐列表
  14. banklistrecommendList(data) {
  15. return myRequest({
  16. url: '/app/common/bank/recommendList',
  17. method: 'get',
  18. data: data,
  19. noToken:true
  20. })
  21. },
  22. bankInfo(data) {
  23. return myRequest({
  24. url: '/app/common/bank/' + data,
  25. method: 'get',
  26. noToken: true
  27. })
  28. },
  29. //查询题库大章列表
  30. banklistchapterlist(data) {
  31. return myRequest({
  32. url: '/app/common/bank/chapter/list',
  33. method: 'get',
  34. data: data,
  35. noToken:true
  36. })
  37. },
  38. //获取题库大章详细信息
  39. bankInfochapter(data) {
  40. return myRequest({
  41. url: '/app/common/bank/chapter/' + data,
  42. method: 'get',
  43. })
  44. },
  45. //查询题库小节列表
  46. banklistsectionlist(data) {
  47. return myRequest({
  48. url:'/bank/section/list',
  49. method: 'get',
  50. data: data,
  51. })
  52. },
  53. //获取题库小节详细信息
  54. bankInfosection(data) {
  55. return myRequest({
  56. url: '/bank/section/' + data,
  57. method: 'get',
  58. })
  59. },
  60. //查询题库试卷列表
  61. banklistexam(data) {
  62. return myRequest({
  63. url:'/bank/exam/list',
  64. method: 'get',
  65. data: data,
  66. })
  67. },
  68. //获取题库试卷详细信息
  69. bankInfoexam(data) {
  70. return myRequest({
  71. url: '/bank/exam/' + data,
  72. method: 'get',
  73. })
  74. },
  75. //查询题目详情列表
  76. questiondetailList(data) {
  77. return myRequest({
  78. url:'/bank/question/list',
  79. method: 'get',
  80. data: data,
  81. })
  82. },
  83. //获取题目详情详细信息
  84. questiondetail(data) {
  85. return myRequest({
  86. url: '/bank/question/' + data,
  87. method: 'get',
  88. })
  89. },
  90. //新增用户的做题历史
  91. questiondetailrecord(data) {
  92. return myRequest({
  93. url:'/bank/record',
  94. method: 'post',
  95. data: data,
  96. })
  97. },
  98. //查询用户的做题历史列表
  99. questiondetailrecordlist(data) {
  100. return myRequest({
  101. url:'/bank/record/list',
  102. method: 'get',
  103. data: data,
  104. })
  105. },
  106. //获取用户的做题历史详细信息
  107. questionrecord(data) {
  108. return myRequest({
  109. url: '/bank/record/' + data,
  110. method: 'get',
  111. })
  112. }
  113. }