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:
72
src/services/Management/list.ts
Normal file
72
src/services/Management/list.ts
Normal file
@@ -0,0 +1,72 @@
|
||||
import { request } from '@umijs/max';
|
||||
import { downLoadXlsx } from '@/utils/downloadfile';
|
||||
|
||||
export async function getCmsJobList(params?: API.ManagementList.ListParams) {
|
||||
return request<API.ManagementList.ManagePageResult>(`/api/cms/job/list`, {
|
||||
method: 'GET',
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function addCmsJobList(params?: API.ManagementList.AddParams) {
|
||||
return request<API.ManagementList.ManagePageResult>(`/api/cms/job`, {
|
||||
method: 'POST',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function updateCmsJobList(params?: API.ManagementList.AddParams) {
|
||||
return request<API.ManagementList.ManagePageResult>(`/api/cms/job`, {
|
||||
method: 'PUT',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function getCmsJobIds(ids: string) {
|
||||
return request<API.ManagementList.ManageIdResult>(`/api/cms/job/${ids}`, {
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
export async function getCmsJobDetail(jobId: string) {
|
||||
return request<API.ManagementList.ManageIdResult>(`/api/cms/job/${jobId}`, {
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
export async function delCmsJobIds(ids: string) {
|
||||
return request<API.ManagementList.ManagePageResult>(`/api/cms/job/${ids}`, {
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
export async function exportCmsJob(params?: API.ManagementList.ListParams) {
|
||||
return downLoadXlsx(`/api/cms/job/export`, { params }, `job_data_${new Date().getTime()}.xlsx`);
|
||||
}
|
||||
|
||||
export async function exportJobApply(params?: API.ManagementList.ListParams) {
|
||||
return downLoadXlsx(`/api/cms/jobApply/export`, { params }, `job_data_${new Date().getTime()}.xlsx`);
|
||||
}
|
||||
|
||||
export async function exportCmsJobCandidates(ids: string) {
|
||||
return request<API.ManagementList.ManageIdResult>(`/api/cms/job/candidates`, {
|
||||
method: 'GET',
|
||||
params: {
|
||||
jobId: ids,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
export async function addCmsEmployeeConfirmList(params?: API.Management.Hire) {
|
||||
return request<API.Management.ManagePageResult>(`/api/cms/employeeConfirm`, {
|
||||
method: 'POST',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function addCmsUserWorkExperiencesList(params?: API.Management.Params) {
|
||||
return request<API.Management.ManageResumePageResult>(`/api/cms/userworkexperiences/list`, {
|
||||
method: 'GET',
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user