You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
138 lines
4.2 KiB
TypeScript
138 lines
4.2 KiB
TypeScript
|
8 months ago
|
// @ts-ignore
|
||
|
|
/* eslint-disable */
|
||
|
|
import request from '@/utils/request';
|
||
|
|
|
||
|
|
/** 后台新增或者修改创新服务 POST /b2b2c/pbcInnovativeService/addOrUpdateInnovativeService */
|
||
|
|
export async function addOrUpdateInnovativeServiceUsingPost(
|
||
|
|
body: API.PbcInnovativeService_,
|
||
|
|
options?: { [key: string]: any },
|
||
|
|
) {
|
||
|
|
return request<API.AjaxResultString_>(
|
||
|
|
'/b2b2c/pbcInnovativeService/addOrUpdateInnovativeService',
|
||
|
|
{
|
||
|
|
method: 'POST',
|
||
|
|
headers: {
|
||
|
|
'Content-Type': 'application/json',
|
||
|
|
},
|
||
|
|
data: body,
|
||
|
|
...(options || {}),
|
||
|
|
},
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
/** 后台根据id获取创新服务详情 后台 GET /b2b2c/pbcInnovativeService/admin/InnovativeServiceDetail */
|
||
|
|
export async function innovativeServiceDetailForAdminUsingGet(
|
||
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||
|
|
params: API.innovativeServiceDetailForAdminUsingGETParams,
|
||
|
|
options?: { [key: string]: any },
|
||
|
|
) {
|
||
|
|
return request<API.AjaxResultPbcInnovativeService_>(
|
||
|
|
'/b2b2c/pbcInnovativeService/admin/InnovativeServiceDetail',
|
||
|
|
{
|
||
|
|
method: 'GET',
|
||
|
|
params: {
|
||
|
|
...params,
|
||
|
|
},
|
||
|
|
...(options || {}),
|
||
|
|
},
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
/** 更改服务状态,就是那个按钮 GET /b2b2c/pbcInnovativeService/changeInnovativeServiceState */
|
||
|
|
export async function changeInnovativeServiceStateUsingGet(
|
||
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||
|
|
params: API.changeInnovativeServiceStateUsingGETParams,
|
||
|
|
options?: { [key: string]: any },
|
||
|
|
) {
|
||
|
|
return request<API.AjaxResultString_>(
|
||
|
|
'/b2b2c/pbcInnovativeService/changeInnovativeServiceState',
|
||
|
|
{
|
||
|
|
method: 'GET',
|
||
|
|
params: {
|
||
|
|
...params,
|
||
|
|
},
|
||
|
|
...(options || {}),
|
||
|
|
},
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
/** 前端使用获取可用的创新服务列表 列表 GET /b2b2c/pbcInnovativeService/getInnovativeServiceList */
|
||
|
|
export async function getInnovativeServiceListUsingGet(options?: { [key: string]: any }) {
|
||
|
|
return request<API.AjaxResultListPbcInnovativeService_>(
|
||
|
|
'/b2b2c/pbcInnovativeService/getInnovativeServiceList',
|
||
|
|
{
|
||
|
|
method: 'GET',
|
||
|
|
...(options || {}),
|
||
|
|
},
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
/** 后台获取创新服务分页 分页 POST /b2b2c/pbcInnovativeService/getInnovativeServicePage */
|
||
|
|
export async function getInnovativeServicePageUsingPost(
|
||
|
|
body: API.PbcInnovativeService_,
|
||
|
|
options?: { [key: string]: any },
|
||
|
|
) {
|
||
|
|
return request<API.AjaxResultIPagePbcInnovativeService_>(
|
||
|
|
'/b2b2c/pbcInnovativeService/getInnovativeServicePage',
|
||
|
|
{
|
||
|
|
method: 'POST',
|
||
|
|
headers: {
|
||
|
|
'Content-Type': 'application/json',
|
||
|
|
},
|
||
|
|
data: body,
|
||
|
|
...(options || {}),
|
||
|
|
},
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
/** 前端获取创新服务分页 分页 POST /b2b2c/pbcInnovativeService/getInnovativeServicePageForFront */
|
||
|
|
export async function getInnovativeServicePageForFrontUsingPost(
|
||
|
|
body: API.PbcInnovativeService_,
|
||
|
|
options?: { [key: string]: any },
|
||
|
|
) {
|
||
|
|
return request<API.AjaxResultIPagePbcInnovativeService_>(
|
||
|
|
'/b2b2c/pbcInnovativeService/getInnovativeServicePageForFront',
|
||
|
|
{
|
||
|
|
method: 'POST',
|
||
|
|
headers: {
|
||
|
|
'Content-Type': 'application/json',
|
||
|
|
},
|
||
|
|
data: body,
|
||
|
|
...(options || {}),
|
||
|
|
},
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
/** 前端根据id获取创新服务详情 前端 GET /b2b2c/pbcInnovativeService/InnovativeServiceDetail */
|
||
|
|
export async function innovativeServiceDetailUsingGet(
|
||
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||
|
|
params: API.innovativeServiceDetailUsingGETParams,
|
||
|
|
options?: { [key: string]: any },
|
||
|
|
) {
|
||
|
|
return request<API.AjaxResultPbcInnovativeService_>(
|
||
|
|
'/b2b2c/pbcInnovativeService/InnovativeServiceDetail',
|
||
|
|
{
|
||
|
|
method: 'GET',
|
||
|
|
params: {
|
||
|
|
...params,
|
||
|
|
},
|
||
|
|
...(options || {}),
|
||
|
|
},
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
/** 后台根据id删除单个服务详情 GET /b2b2c/pbcInnovativeService/removeInnovativeService */
|
||
|
|
export async function removeInnovativeServiceUsingGet(
|
||
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||
|
|
params: API.removeInnovativeServiceUsingGETParams,
|
||
|
|
options?: { [key: string]: any },
|
||
|
|
) {
|
||
|
|
return request<API.AjaxResultString_>('/b2b2c/pbcInnovativeService/removeInnovativeService', {
|
||
|
|
method: 'GET',
|
||
|
|
params: {
|
||
|
|
...params,
|
||
|
|
},
|
||
|
|
...(options || {}),
|
||
|
|
});
|
||
|
|
}
|