11
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
CodeQL / Analyze (javascript) (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:
francis-fh
2026-06-04 16:25:38 +08:00
parent 3815dd63da
commit 03f26885c5
32 changed files with 2642 additions and 3062 deletions

View File

@@ -1,4 +1,5 @@
import { request } from '@umijs/max';
import { isJobPortalLoggedIn } from '@/utils/jobPortalAuth';
export interface JobCompetitivenessRadar {
skill?: number;
@@ -17,9 +18,22 @@ export interface GetJobCompetitivenessResponse {
radarChart?: JobCompetitivenessRadar;
}
export const getEmptyCompetitivenessRadar = () => [
{ item: '技能', score: 0 },
{ item: '工作经验', score: 0 },
{ item: '学历', score: 0 },
{ item: '薪资', score: 0 },
{ item: '年龄', score: 0 },
{ item: '工作地', score: 0 },
];
/** 职位竞争力 GET /app/job/competitiveness/{jobId}(需登录) */
export async function getJobCompetitiveness(jobId: number) {
if (!isJobPortalLoggedIn()) {
return null;
}
return request<GetJobCompetitivenessResponse>(`/app/job/competitiveness/${jobId}`, {
method: 'GET'
method: 'GET',
});
}