YNUtdPlatform/api/eduApp/index.js

155 lines
3.6 KiB
JavaScript

import request from '@/utils/request'
// 我的消息
export function getNoticeAnnoByUserId(data) {
return request({
url: '/app/index/getNoticeAnnoByUserId',
method: 'post',
data: data
})
}
// 考试-列表 /personalCenter/getStudentExamList
export function getStudentExamList(params) {
return request({
url: '/personalCenter/getStudentExamList',
method: 'post',
data: params
})
}
// 考试-题目 /studentExam/getExamQuestionList
export function getExamQuestionList(params) {
return request({
url: '/studentExam/getExamQuestionList',
method: 'post',
data: params
})
}
// 考试-做题 /studentExam/insertQuestionAnswerById
export function insertQuestionAnswerById(params) {
return request({
url: '/studentExam/insertQuestionAnswerById',
method: 'post',
data: params
})
}
// 考试-交卷+结果 /studentExam/commitExamByRecordId
export function commitExamByRecordId(params) {
return request({
url: '/studentExam/commitExamByRecordId',
method: 'post',
data: params
})
}
// 考试-查询结果列表 /studentExam/getExamRecordById
export function getExamRecordById(params) {
return request({
url: '/studentExam/getExamRecordById',
method: 'get',
data: params
})
}
// 考试-结果详情 studentExam/getExamRecordAnswer
export function getExamRecordAnswer(params) {
return request({
url: '/studentExam/getExamRecordAnswer',
method: 'post',
data: params
})
}
// 考试-排名 studentExam/getExamRankById
export function getExamRankById(params) {
return request({
url: '/studentExam/getExamRankById',
method: 'post',
data: params
})
}
// 练习-列表 /personalCenter/getStudentPracticeList
export function getStudentPracticeList(params) {
return request({
url: '/personalCenter/getStudentPracticeList',
method: 'post',
data: params
})
}
// 练习-总览 /studentPractice/getPracticeQuestionRate
export function getPracticeQuestionRate(params) {
return request({
url: '/studentPractice/getPracticeQuestionRate',
method: 'post',
data: params
})
}
// 练习-聚合数据 /studentPractice/getPracticeItData
export function getPracticeItData(params) {
return request({
url: '/studentPractice/getPracticeItData',
method: 'post',
data: params
})
}
// 练习-题目 studentPractice/getPracticeQuestion
export function getPracticeQuestion(params) {
return request({
url: '/studentPractice/getPracticeQuestion',
method: 'post',
data: params
})
}
// 练习-答题 studentPractice/insertPracticeAnswerById
export function insertPracticeAnswerById(params) {
return request({
url: '/studentPractice/insertPracticeAnswerById',
method: 'post',
data: params
})
}
// 练习-前后题-跳题 studentPractice/changeQuestion
export function changeQuestion(params) {
return request({
url: '/studentPractice/changeQuestion',
method: 'post',
data: params
})
}
// 练习-弹框序号跳题 /studentPractice/getPracticeQuestionList
export function getPracticeQuestionList(params) {
return request({
url: '/studentPractice/getPracticeQuestionList',
method: 'post',
data: params
})
}
// 练习-保存练习时长 /studentPractice/savePracticeDuration
export function savePracticeDuration(params) {
return request({
url: '/studentPractice/savePracticeDuration',
method: 'post',
data: params
})
}
// 练习-错题消除 studentPractice/updateRemoveRecordData
export function updateRemoveRecordData(params) {
return request({
url: '/studentPractice/updateRemoveRecordData',
method: 'post',
data: params
})
}