增加了ai问题列表api
This commit is contained in:
@@ -2,6 +2,7 @@ import ResponseUtil from "../utils/responseUtil.js";
|
||||
import services from "../resource/services.js";
|
||||
import agreement from "../resource/agreement.js";
|
||||
import hospitalInfo from "../resource/hospital_info.js";
|
||||
import aiquick_questions from "../resource/aiquick_questions.js";
|
||||
import { hospitalRanking, departmentRankings } from "../resource/fudan_hospital_ranking.js";
|
||||
|
||||
class HandlerResource {
|
||||
@@ -52,6 +53,15 @@ class HandlerResource {
|
||||
return ResponseUtil.internalError(ctx, err.message);
|
||||
}
|
||||
}
|
||||
|
||||
// 获取陪诊服务问题
|
||||
async getAiQuickQuestions(ctx) {
|
||||
try {
|
||||
return ResponseUtil.success(ctx, { aiquick_questions }, "查询成功");
|
||||
} catch (err) {
|
||||
return ResponseUtil.internalError(ctx, err.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { HandlerResource };
|
||||
|
||||
Reference in New Issue
Block a user