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

@@ -8,10 +8,11 @@ export async function getPolicyInfoList(params?: API.PolicyInfo.Params) {
});
}
// 获取政策详情
export async function getPolicyInfoDetail(id: number) {
return request<API.PolicyInfo.PolicyInfoDetailResult>(`/api/cms/policyInfo/${id}`, {
/** 获取政策详情 GET /cms/policyInfo/detail?id= */
export async function getPolicyInfoDetail(id: number | string) {
return request<API.PolicyInfo.PolicyInfoDetailResult>('/api/cms/policyInfo/detail', {
method: 'GET',
params: { id },
});
}

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',
});
}