system.ts 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import { DefineApiModule } from '@/api/api'
  2. import { System } from '@/api/api-types/system'
  3. const SystemApi: DefineApiModule<System.ApiMap> = {
  4. /** 评卷数据导入 */
  5. importMarkingData: {
  6. url: '/api/student/import',
  7. headers: {
  8. 'Content-Type': 'multipart/form-data',
  9. },
  10. timeout: 0,
  11. },
  12. /** 创建评卷分配表 */
  13. exportStudentTask: {
  14. url: '/api/student/task/export',
  15. download: true,
  16. timeout: 0,
  17. },
  18. /** 获取培训卷RF卷评分标准路径 */
  19. getImportFilePath: '/api/reference/paper/file/path',
  20. /** 导入培训卷 */
  21. importSamplePaper: {
  22. // url: '/api/reference/paper/import/samp',
  23. url: '/api/reference/paper/import',
  24. headers: {
  25. 'Content-Type': 'multipart/form-data',
  26. },
  27. timeout: 0,
  28. },
  29. /** 导入RF卷 */
  30. importRfPaper: {
  31. // url: '/api/reference/paper/import/rf',
  32. url: '/api/reference/paper/import',
  33. headers: {
  34. 'Content-Type': 'multipart/form-data',
  35. },
  36. timeout: 0,
  37. },
  38. importCheck: '/api/reference/paper/import/check',
  39. /** CET成绩列表 */
  40. getCetScoreList: '/api/student/page',
  41. /** CET成绩导出接口 */
  42. exportCetScoreList: '/api/student/export',
  43. // exportCetScoreList: {
  44. // url: '/api/student/export',
  45. // download: true,
  46. // timeout: 0,
  47. // },
  48. /**删除单条导入导出的记录 */
  49. removeImportOrExport: '/api/operate/task/remove',
  50. /** 导入导出记录 */
  51. imortAndExportList: '/api/operate/task/page',
  52. adminGetMarkers: '/api/user/marker/group/all',
  53. /** 任务设置 - 按评卷员设置 */
  54. markerSetCount: {
  55. url: '/api/user/marker/add/count',
  56. headers: {
  57. 'Content-Type': 'application/json',
  58. },
  59. },
  60. /** 任务设置 - 按小组追加 */
  61. markGroupUpdateCount: '/api/user/marker/update/count',
  62. /** 任务设置-获取任务计划 */
  63. getTaskDetail: '/api/mark/task/count/datail',
  64. /** 任务设置-获取剩余任务 */
  65. getUnMarkTasks: '/api/mark/task/count/unmark',
  66. /** 考生数据导入状态 */
  67. getStudentImportStatus: '/api/student/import/status',
  68. }
  69. export default SystemApi