feat(aihr): persist sop prompt version

This commit is contained in:
2026-07-14 04:32:21 +08:00
parent cd2c7fdd45
commit c5a6e677dd
8 changed files with 30 additions and 9 deletions
+9 -1
View File
@@ -38,6 +38,7 @@ export type SopSearchResponse = {
records: SopRecord[];
keyPoints?: string[];
cautions?: string[];
promptVersion?: string | null;
reviewId?: number;
};
@@ -46,6 +47,7 @@ export type SopReviewResponse = {
usable: boolean | null;
status: string;
reviewedAt: string;
promptVersion?: string | null;
};
export type AnswerFeedbackItem = {
@@ -79,7 +81,13 @@ export type SopUploadResponse = {
snippets: SopSnippet[];
};
export function searchKnowledgeSop(data: { queryText: string; category: string; position?: string; source?: string; limit: number }): Promise<ApiResult<SopSearchResponse>> {
export function searchKnowledgeSop(data: {
queryText: string;
category: string;
position?: string;
source?: string;
limit: number;
}): Promise<ApiResult<SopSearchResponse>> {
return request({
url: '/api/knowledge/search',
method: 'post',