【修改】试卷任务参数,【新增】试题数据交互
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user