73 lines
2.1 KiB
TypeScript
73 lines
2.1 KiB
TypeScript
|
|
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,
|
||
|
|
});
|
||
|
|
}
|