加入群聊
This commit is contained in:
@@ -83,7 +83,7 @@ interface TestResult {
|
||||
level_description: string;
|
||||
radar_data: RadarData;
|
||||
test_duration: number; // 单位秒
|
||||
create_time: string; // 时间字符串
|
||||
create_time: string; // 时间字符串
|
||||
}
|
||||
|
||||
// data 对象
|
||||
@@ -103,7 +103,10 @@ class EvaluateService {
|
||||
}
|
||||
|
||||
// 提交答案
|
||||
async submit(req: { answers: { question_id: number, answer_index: number }[], test_duration: number }): Promise<ApiResponse<TestResultData>> {
|
||||
async submit(req: {
|
||||
answers: { question_id: number; answer_index: number }[];
|
||||
test_duration: number;
|
||||
}): Promise<ApiResponse<TestResultData>> {
|
||||
return httpService.post("/ntrp/submit", req, { showLoading: true });
|
||||
}
|
||||
|
||||
@@ -113,7 +116,9 @@ class EvaluateService {
|
||||
}
|
||||
|
||||
// 获取测试详情
|
||||
async getTestResult(req: { record_id: number }): Promise<ApiResponse<TestResultData>> {
|
||||
async getTestResult(req: {
|
||||
record_id: number;
|
||||
}): Promise<ApiResponse<TestResultData>> {
|
||||
return httpService.post("/ntrp/detail", req, { showLoading: true });
|
||||
}
|
||||
|
||||
@@ -123,8 +128,14 @@ class EvaluateService {
|
||||
}
|
||||
|
||||
// 更新NTRP等级
|
||||
async updateNtrp(req: { record_id: number, ntrp_level: string, update_type: string }): Promise<ApiResponse<any>> {
|
||||
return httpService.post("/ntrp/update_user_level", req, { showLoading: true });
|
||||
async updateNtrp(req: {
|
||||
record_id: number;
|
||||
ntrp_level: string;
|
||||
update_type: string;
|
||||
}): Promise<ApiResponse<any>> {
|
||||
return httpService.post("/ntrp/update_user_level", req, {
|
||||
showLoading: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user