feat(aihr): persist interview human review

This commit is contained in:
2026-07-14 09:44:03 +08:00
parent ccb164a45a
commit e55abec630
10 changed files with 271 additions and 14 deletions
+20
View File
@@ -64,14 +64,25 @@ export type InterviewFinishResponse = {
};
export type InterviewRecord = {
sessionId?: string;
time: string;
candidate: string;
position: string;
score: number;
reviewedScore?: number | null;
finalScore?: number;
reviewStatus?: string;
reviewer?: string;
reviewNote?: string;
result: string;
summary: string;
};
export type InterviewReviewRequest = {
reviewedScore: number;
reviewNote?: string;
};
export type CandidateLinkResponse = {
candidateId: string;
extPartyId: string;
@@ -126,6 +137,15 @@ export function listInterviewRecords(limit = 20): Promise<ApiResult<InterviewRec
});
}
export function reviewInterviewRecord(sessionId: string, data: InterviewReviewRequest): Promise<ApiResult<null>> {
return request({
url: `/api/recruit/interview/records/${encodeURIComponent(sessionId)}/review`,
method: 'post',
data,
headers: { repeatSubmit: false }
});
}
export function getCandidateEmployeeLink(candidateId: string): Promise<ApiResult<CandidateLinkResponse | null>> {
return request({
url: '/api/recruit/interview/candidate-links',