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/paper/paper.js

14 lines
653 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// 从 '@/utils/request' 模块导入 post 方法,用于发送 POST 请求
import { post } from '@/utils/request'
/**
* 获取试卷列表
* @param {string|number} userId - 用户的唯一标识,用于筛选该用户相关的试卷
* @param {string|number} examId - 考试的唯一标识,用于筛选该考试下的试卷
*/
export function listPaper(userId, examId) {
// 发送 POST 请求到指定的试卷分页接口
// 请求体中包含当前页码、每页显示数量以及筛选参数(用户 ID 和考试 ID
return post('/exam/api/paper/paper/paging', { current: 1, size: 5, params: { userId: userId, examId: examId }})
}