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
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:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user