求职者管理增加收藏功能、面试邀请、人才库功能开发
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
This commit is contained in:
@@ -28,3 +28,33 @@ export async function applyAgree(params: { id: string; hire: number }) {
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
// ========== 企业人才收藏 APIs ==========
|
||||
|
||||
/** 获取当前企业人才收藏列表 */
|
||||
export async function getHrTalentCollectList(params?: Record<string, any>) {
|
||||
return request<API.Result>('/api/cms/hrTalentCollect/list', {
|
||||
method: 'GET',
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
/** 收藏求职者(加入人才库) */
|
||||
export async function addHrTalentCollect(data: {
|
||||
userId: string;
|
||||
intentionLevel: string;
|
||||
collectTags?: string;
|
||||
sourceType: string;
|
||||
}) {
|
||||
return request<API.Result>('/api/cms/hrTalentCollect', {
|
||||
method: 'POST',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
/** 取消收藏(移出人才库,路径参数为userId) */
|
||||
export async function delHrTalentCollect(userId: string) {
|
||||
return request<API.Result>(`/api/cms/hrTalentCollect/${userId}`, {
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user