1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- import request from '@/common/request.js'
- /**
- * 获取考试列表
- * @param {Object} data
- */
- export function examPaging(data) {
- return request.post('/api/exam/exam/online-paging', data);
- }
- /**
- * 获取考试详情
- * @param {Object} id
- */
- export function examDetail(id) {
- return request.post('/api/exam/exam/detail', { id: id});
- }
- /**
- * 创建试卷
- * @param {Object} id
- */
- export function createPaper(data) {
- return request.post('/api/paper/paper/create-paper', data);
- }
- /**
- * 获取试卷详情
- * @param {Object} id
- */
- export function paperDetail(id) {
- return request.post('/api/paper/paper/paper-detail', { id: id});
- }
- /**
- * 试卷详情
- * @param data
- */
- export function paperResult(id) {
- return request.post('/api/paper/paper/paper-result', { id: id});
- }
- /**
- * 获取题目详情
- * @param {Object} id
- */
- export function paperQuDetail(paperId, quId) {
- return request.post('/api/paper/paper/qu-detail', { paperId: paperId, quId: quId});
- }
- /**
- * 填充答案
- * @param {Object} id
- */
- export function fillAnswer(data) {
- return request.post('/api/paper/paper/fill-answer', data);
- }
- /**
- * 交卷
- * @param {Object} id
- */
- export function handExam(data) {
- return request.post('/api/paper/paper/hand-exam', data);
- }
- /**
- * 检查是否有进行中的考试
- * @returns {*}
- */
- export function checkProcess() {
- return request.post('/api/paper/paper/check-process', {})
- }
- /**
- * 校验考试信息
- * @param id
- * @returns {*}
- */
- export function checkInfo(id) {
- return request.post('/api/exam/exam/check-info', { id: id })
- }
|