| | |
| | | import { post, download } 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), |
| | | downloadImportTemplate: () => download('/api/admin/question/download/question/import/temp') |
| | | downloadImportTemplate: () => download('/api/admin/question/download/question/import/temp'), |
| | | exportQuestion: query => downloadPost('/api/admin/question/question/export', query) |
| | | } |