first commit
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:
38
src/services/common/jobTitle.ts
Normal file
38
src/services/common/jobTitle.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
import { request } from '@umijs/max';
|
||||
|
||||
// 获取职位树形选择数据
|
||||
export async function getJobTitleTreeSelect() {
|
||||
return request('/api/app/common/jobTitle/treeselect', {
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
// 获取热门岗位推荐数据
|
||||
export async function getJobRecommend() {
|
||||
return request('/api/cms/job/recommend', {
|
||||
method: 'GET',
|
||||
params: {
|
||||
order: 2
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 获取职位列表数据
|
||||
export async function getJobList(jobCategory: string) {
|
||||
return request('/api/cms/job/recommend', {
|
||||
method: 'GET',
|
||||
params: {
|
||||
order: 0,
|
||||
isPublish: 1,
|
||||
jobCategory: jobCategory
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 添加用户工作经历
|
||||
export async function addUserWorkExperience(params: { companyName: string; position?: string; startDate?: string; endDate?: string; description?: string }) {
|
||||
return request('/api/cms/userworkexperiences', {
|
||||
method: 'POST',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user