xiangpei
2024-07-08 154891cce3b3cce34c300a225a7a14e5a8893cf5
src/api/question.js
@@ -1,8 +1,10 @@
import { post } from '@/utils/request'
import { post, download, downloadPost } from '@/utils/request'
export default {
  pageList: query => post('/api/admin/question/page', query),
  edit: query => post('/api/admin/question/edit', query),
  select: id => post('/api/admin/question/select/' + id),
  deleteQuestion: id => post('/api/admin/question/delete/' + id)
  deleteQuestion: id => post('/api/admin/question/delete/' + id),
  downloadImportTemplate: () => download('/api/admin/question/download/question/import/temp'),
  exportQuestion: query => downloadPost('/api/admin/question/question/export', query)
}