【修改】试卷任务参数,【新增】试题数据交互

This commit is contained in:
YOHO\20373
2025-05-16 15:11:47 +08:00
committed by 陆光LG
parent 47cfdee979
commit 9e969aadc1
35 changed files with 5304 additions and 117 deletions

View File

@@ -9,10 +9,30 @@ export interface QuestionQueryVO {
export const getQuestionList = (params: QuestionQueryVO) => {
return request.get({ url: '/exam/question/list', params })
}
export const getQuestionSendList = (params: QuestionQueryVO) => {
return request.get({ url: '/exam/question/sendList', params })
}
export const getQuestionAuditList = (params: QuestionQueryVO) => {
return request.get({ url: '/exam/question/auditList', params })
}
export async function auditQuestion(data) {
return await request.post({ url: '/rabbitmq/send' ,data })
}
export async function rabbitmqConnect() {
return await request.post({ url: '/rabbitmq/connect' })
}
// 获取试题详情
export const getQuestion = (id: number) => {
return request.get({ url: '/exam/question/' + id })
}
export const getQuestionnotId = (id: number) => {
return request.get({ url: '/exam/question/notId/' + id })
}
// 获取题库列表
@@ -33,4 +53,52 @@ export function addQuestion(data: any) {
// 修改试题
export function editQuestion(data: any) {
return request.put({url: '/exam/question', data});
}
export const getQuestionExamineList = (params: QuestionQueryVO) => {
return request.get({ url: '/exam/question/auditList', params })
}
export const getSchoolName = (params) => {
return request.get({ url: '/exam/question/getSchoolName',params })
}
export const receiveAll = () => {
return request.get({ url: '/rabbitmq/receiveAll' })
}
export const syncUniversities = (ids: string[]) => {
return request.post({
url: '/rabbitmq/receiveSchoolAll',
data: ids
})
}
export const doPush = (data) => {
return request.post({
url: '/rabbitmq/doPush',
data: data
});
}
export const connectSchoolAll = (ids: string[]) => {
return request.post({
url: '/rabbitmq/connectSchoolAll',
data: ids
})
}
export const auditQue = (ids: string[]) => {
return request.post({
url: '/exam/question/auditQue',
data: ids
})
}
export const noauditQue = (ids: string[]) => {
return request.post({
url: '/exam/question/noauditQue',
data: ids
})
}

View File

@@ -24,6 +24,13 @@ export async function getSession(id) {
return await request.get({ url: '/exam/session/' + id })
}
export async function getTime(id) {
return await request.get({ url: '/exam/session/getTime/' + id })
}
/**
* 添加试卷场次