xx-sys/src/api/question/question.js

25 lines
495 B
JavaScript
Raw Normal View History

2024-07-17 07:34:57 +00:00
import http from "@/utils/http";
//获取题目
export const getQuestion= (type)=>{
if(type==null||type==undefined){
type="refresh";
}
return http({
url:"/question/getQuestion",
method:"get",
params:{
type
},
})
}
//注册
export const validationAnswer= (user)=>{
return http({
url:"/question/validationAnswer",
method:"get",
data:user,
headers:{
isToken:false
}
})
}