feat: add job suggestion feature with autocomplete in JobPortalHeader
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:
2026-07-16 10:13:01 +08:00
parent 219a945668
commit 4d48d33476
3 changed files with 99 additions and 13 deletions

View File

@@ -18,6 +18,14 @@ export async function getJobRecommend(params?: { jobTitle?: string }) {
});
}
/** 获取岗位名称联想 GET /api/app/job/suggest */
export async function getJobSuggestions(keyword: string, limit = 10) {
return request<{ code: number; msg?: string; data?: string[] }>('/api/app/job/suggest', {
method: 'GET',
params: { keyword, limit },
});
}
// 获取职位列表数据
export async function getJobList(jobCategory: string) {
return request('/api/cms/job/recommend', {