feat(aihr): link candidates to employee principals

This commit is contained in:
2026-07-14 06:22:36 +08:00
parent 0287698214
commit ef188d3283
10 changed files with 330 additions and 1 deletions
+24
View File
@@ -72,6 +72,13 @@ export type InterviewRecord = {
summary: string;
};
export type CandidateLinkResponse = {
candidateId: string;
extPartyId: string;
status: string;
linkedTime: string;
};
export type CandidateMaterialReview = {
id: number | string;
candidateId: string;
@@ -119,6 +126,23 @@ export function listInterviewRecords(limit = 20): Promise<ApiResult<InterviewRec
});
}
export function getCandidateEmployeeLink(candidateId: string): Promise<ApiResult<CandidateLinkResponse | null>> {
return request({
url: '/api/recruit/interview/candidate-links',
method: 'get',
params: { candidateId }
});
}
export function linkCandidateEmployee(candidateId: string, extPartyId: string): Promise<ApiResult<CandidateLinkResponse>> {
return request({
url: '/api/recruit/interview/candidate-links',
method: 'post',
data: { candidateId, extPartyId },
headers: { repeatSubmit: false }
});
}
export function listCandidateMaterialsForReview(status = ''): Promise<ApiResult<CandidateMaterialReview[]>> {
return request({
url: '/api/aihr/hr/candidate/materials',