|
@@ -4,14 +4,14 @@ import { AxiosPromise } from "axios";
|
|
|
class Test {
|
|
|
/** 获取题目列表 */
|
|
|
getList(params: Test.listParams): AxiosPromise<Test.listRes> {
|
|
|
- return request("/student/qustion/info/list", {
|
|
|
+ return request("/student/question/info/list", {
|
|
|
params,
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/**获取免费题列表 */
|
|
|
getFreeList(params: Test.listParams): AxiosPromise<Test.listRes> {
|
|
|
- return request("/student/qustion/info/selectFreeQuestionInfo", {
|
|
|
+ return request("/student/question/info/selectFreeQuestionInfo", {
|
|
|
params,
|
|
|
});
|
|
|
}
|
|
@@ -25,7 +25,7 @@ class Test {
|
|
|
|
|
|
/** 根据ids批量获取问题详情 */
|
|
|
getQuestionInfoByIds(params: Test.QuestionInfoByIdsParams): AxiosPromise<Test.QuestionInfoByIdsRes> {
|
|
|
- return request("/student/qustion/info/getQuestionInfoByIds", {
|
|
|
+ return request("/student/question/info/getQuestionInfoByIds", {
|
|
|
params: {
|
|
|
...params,
|
|
|
ids: params.ids.toString(),
|
|
@@ -35,7 +35,7 @@ class Test {
|
|
|
/** 获取地方题分类 */
|
|
|
selectDfQustionInfo(params: Partial<Test.getTopicClassParams>): AxiosPromise<Test.selectDfQustionInfoRes[]> {
|
|
|
return request({
|
|
|
- url: `/student/qustion/info/selectDfQustionInfo`,
|
|
|
+ url: `/student/question/info/selectDfQustionInfo`,
|
|
|
params,
|
|
|
});
|
|
|
}
|
|
@@ -43,7 +43,7 @@ class Test {
|
|
|
/** 获取分类专题分类 */
|
|
|
selectFlQustionInfo(params: Partial<Test.getTopicClassParams>): AxiosPromise<Test.selectFlQustionInfoRes[]> {
|
|
|
return request({
|
|
|
- url: `/student/qustion/info/selectFlQustionInfo`,
|
|
|
+ url: `/student/question/info/selectFlQustionInfo`,
|
|
|
params,
|
|
|
});
|
|
|
}
|
|
@@ -51,7 +51,7 @@ class Test {
|
|
|
/** 获取精选题分类 */
|
|
|
selectJxQustionInfo(params: Partial<Test.getTopicClassParams>): AxiosPromise<Test.selectJxQustionInfoRes[]> {
|
|
|
return request({
|
|
|
- url: `/student/qustion/info/selectJxQustionInfo`,
|
|
|
+ url: `/student/question/info/selectJxQustionInfo`,
|
|
|
params,
|
|
|
});
|
|
|
}
|
|
@@ -59,7 +59,7 @@ class Test {
|
|
|
/** 获取顺序练习分类 */
|
|
|
selectSxQustionInfo(params: Partial<Test.getTopicClassParams>): AxiosPromise<Test.selectSxQustionInfoRes[]> {
|
|
|
return request({
|
|
|
- url: `/student/qustion/info/selectSxQustionInfo`,
|
|
|
+ url: `/student/question/info/selectSxQustionInfo`,
|
|
|
params,
|
|
|
});
|
|
|
}
|
|
@@ -72,7 +72,7 @@ export const test = new Test();
|
|
|
*/
|
|
|
export async function getTopicClass(path: string, params: any) {
|
|
|
return request({
|
|
|
- url: `/student/qustion/info/${path}`,
|
|
|
+ url: `/student/question/info/${path}`,
|
|
|
params,
|
|
|
});
|
|
|
}
|
|
@@ -82,7 +82,7 @@ export async function getTopicClass(path: string, params: any) {
|
|
|
*/
|
|
|
export const getQuestionInfoByIds = async (params: Test.QuestionInfoByIdsParams) => {
|
|
|
const res = await request({
|
|
|
- url: "/student/qustion/info/getQuestionInfoByIds",
|
|
|
+ url: "/student/question/info/getQuestionInfoByIds",
|
|
|
params: {
|
|
|
...params,
|
|
|
ids: params.ids.toString(),
|