paper.js 649 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import request from '@/common/request.js'
  2. /**
  3. * 获取考试列表
  4. * @param {Object} data
  5. */
  6. export function totalPaging(data) {
  7. return request.post('/api/user/exam/my-paging', data);
  8. }
  9. /**
  10. * 获取考试详情
  11. * @param {Object} id
  12. */
  13. export function examDetail(id) {
  14. return request.post('/api/exam/exam/detail', { id: id});
  15. }
  16. /**
  17. * 获取考试列表
  18. * @param {Object} data
  19. */
  20. export function paperPaging(data) {
  21. return request.post('/api/paper/paper/my-paging', data);
  22. }
  23. /**
  24. * 获取考试列表
  25. * @param {Object} data
  26. */
  27. export function paperResult(id) {
  28. return request.post('/api/paper/paper/paper-result', { id: id});
  29. }