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 checkQuestion= ({ questionId, answer })=>{ return http({ url:"/question/validationAnswer", method:"get", params:{ questionId, answer } }) }