flat: 暂存
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
import { request } from '@umijs/max';
|
||||
|
||||
export async function getCmsJobList(params?: API.Management.ListParams) {
|
||||
return request<API.Management.ManagePageResult>(`/api/cms/job/list`, {
|
||||
export async function getCmsJobList(params?: API.ManagementList.ListParams) {
|
||||
return request<API.ManagementList.ManagePageResult>(`/api/cms/job/list`, {
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
export async function getCmsJobIds(ids: string) {
|
||||
return request<API.Management.ManagePageResult>(`/api/cms/job/${ids}`, {
|
||||
return request<API.ManagementList.ManagePageResult>(`/api/cms/job/${ids}`, {
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
export async function delCmsJobIds(ids: string) {
|
||||
return request<API.ManagementList.ManagePageResult>(`/api/cms/job/${ids}`, {
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -27,3 +27,9 @@ export async function deleteCmsAreaListRow(ids: number) {
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
export async function exportCmsAreaListRow(params?: API.AreaBusiness.CircleEditParams) {
|
||||
return request<API.AreaPlatForm.LinePageResult>(`/api/cms/area/export`, {
|
||||
method: 'POST',
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
@@ -16,11 +16,24 @@ export async function addCmsLineSubWay(params?: API.AreaSubWay.AddLineParams) {
|
||||
});
|
||||
}
|
||||
|
||||
export async function putCmsLineSubWay(params?: API.AreaSubWay.AddLineParams) {
|
||||
return request<API.AreaSubWay.LinePageResult>(`/api/cms/line`, {
|
||||
method: 'put',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function deleteCmsLineSubWay(ids: number) {
|
||||
return request<API.AreaSubWay.LinePageResult>(`/api/cms/line/${ids}`, {
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
|
||||
export async function getCmsLineSubWay(ids: number) {
|
||||
return request<API.AreaSubWay.LinePageResult>(`/api/cms/line/${ids}`, {
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -16,6 +16,13 @@ export async function addCmsLinePlatForm(params?: API.AreaPlatForm.AddLineParams
|
||||
});
|
||||
}
|
||||
|
||||
export async function putCmsLinePlatForm(params?: API.AreaPlatForm.AddLineParams) {
|
||||
return request<API.AreaPlatForm.LinePageResult>(`/api/cms/station`, {
|
||||
method: 'put',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function deleteCmsLinePlatForm(ids: number) {
|
||||
return request<API.AreaPlatForm.LinePageResult>(`/api/cms/station/${ids}`, {
|
||||
method: 'delete',
|
||||
|
||||
35
src/services/company/list.ts
Normal file
35
src/services/company/list.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import { request } from '@umijs/max';
|
||||
|
||||
export async function getCmsCompanyList(params?: API.CompanyList.Params) {
|
||||
return request<API.CompanyList.CompanyListResult>(`/api/cms/company/list`, {
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
export async function delCmsCompanyList(companyIds?: string) {
|
||||
return request<API.CompanyList.CompanyListResult>(`/api/cms/company/${companyIds}`, {
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
export async function addCmsCompanyList(params?: API.CompanyList.Params) {
|
||||
return request<API.CompanyList.CompanyListResult>(`/api/cms/company`, {
|
||||
method: 'POST',
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
export async function putCmsCompanyList(params?: API.CompanyList.Params) {
|
||||
return request<API.CompanyList.CompanyListResult>(`/api/cms/company`, {
|
||||
method: 'PUT',
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
export async function exportCmsCompanyList(params?: API.CompanyList.Params) {
|
||||
return request<API.CompanyList.CompanyListResult>(`/cms/company/export`, {
|
||||
method: 'POST',
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
33
src/services/jobfair/list.ts
Normal file
33
src/services/jobfair/list.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { request } from '@umijs/max';
|
||||
|
||||
export async function getCmsFairList(params?: API.JobFairList.Params) {
|
||||
return request<API.JobFairList.JobFairListResult>(`/api/app/fair/list`, {
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
export async function addCmsFairList(params?: API.JobFairList.JobFairListRows) {
|
||||
return request<API.JobFairList.JobFairListResult>(`/api/app/fair`, {
|
||||
method: 'POST',
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
export async function putCmsFairList(params?: API.JobFairList.Params) {
|
||||
return request<API.JobFairList.JobFairListResult>(`/api/app/fair`, {
|
||||
method: 'PUT',
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
export async function delCmsFairList(ids?: string) {
|
||||
return request<API.JobFairList.JobFairListResult>(`/api/app/fair${ids}`, {
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
export async function exportCmsFairList(ids?: API.JobFairList.Params) {
|
||||
return request<API.JobFairList.JobFairListResult>(`/api/app/fair/export`, {
|
||||
method: 'POST',
|
||||
});
|
||||
}
|
||||
@@ -55,7 +55,7 @@ export async function deleteUser(
|
||||
});
|
||||
}
|
||||
|
||||
/** Creates list of users with given input array POST /user/createWithArray */
|
||||
/** Creates List of users with given input array POST /user/createWithArray */
|
||||
export async function createUsersWithArrayInput(
|
||||
body: API.User[],
|
||||
options?: { [key: string]: any },
|
||||
@@ -67,7 +67,7 @@ export async function createUsersWithArrayInput(
|
||||
});
|
||||
}
|
||||
|
||||
/** Creates list of users with given input array POST /user/createWithList */
|
||||
/** Creates List of users with given input array POST /user/createWithList */
|
||||
export async function createUsersWithListInput(body: API.User[], options?: { [key: string]: any }) {
|
||||
return request<any>('/user/createWithList', {
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user