You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
exam/api/user/book.js

14 lines
545 B

// 从 '@/utils/request' 模块导入 post 方法,用于发送 POST 请求
import { post } from '@/utils/request'
/**
* 获取下一道错题信息
* @param {string|number} examId - 考试的唯一标识
* @param {string|number} quId - 题目的唯一标识
* @returns {Promise} - 返回一个 Promise 对象,用于处理请求结果
*/
export function nextQu(examId, quId) {
// 发送 POST 请求到指定接口,携带考试 ID 和题目 ID 参数
return post('/exam/api/user/wrong-book/next', { examId: examId, quId: quId })
}