|
|
// @ts-ignore
|
|
|
/* eslint-disable */
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
/** 根据id获取开屏广告信息 后台 GET /b2b2c/pbcScreenAdvertisement/adDetail */
|
|
|
export async function adDetailUsingGet(
|
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
|
params: API.adDetailUsingGETParams,
|
|
|
options?: { [key: string]: any },
|
|
|
) {
|
|
|
return request<API.AjaxResultPbcScreenAdvertisement_>('/b2b2c/pbcScreenAdvertisement/adDetail', {
|
|
|
method: 'GET',
|
|
|
params: {
|
|
|
...params,
|
|
|
},
|
|
|
...(options || {}),
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/** 后台新增或者修改开屏广告 卖家新增或者修改商品 POST /b2b2c/pbcScreenAdvertisement/addOrUpdateScreenAd */
|
|
|
export async function addOrUpdateScreenAdvertisementUsingPost(
|
|
|
body: API.PbcScreenAdvertisement,
|
|
|
options?: { [key: string]: any },
|
|
|
) {
|
|
|
return request<API.AjaxResult>('/b2b2c/pbcScreenAdvertisement/addOrUpdateScreenAd', {
|
|
|
method: 'POST',
|
|
|
headers: {
|
|
|
'Content-Type': 'application/json',
|
|
|
},
|
|
|
data: body,
|
|
|
...(options || {}),
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/** 更改开屏广告状态,pbcBusinessState 1是起效广告,0是不起效广告,每次最多只有1起效开屏广告 GET /b2b2c/pbcScreenAdvertisement/changeAdState */
|
|
|
export async function changeAdStateUsingGet(
|
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
|
params: API.changeAdStateUsingGETParams,
|
|
|
options?: { [key: string]: any },
|
|
|
) {
|
|
|
return request<API.AjaxResultString_>('/b2b2c/pbcScreenAdvertisement/changeAdState', {
|
|
|
method: 'GET',
|
|
|
params: {
|
|
|
...params,
|
|
|
},
|
|
|
...(options || {}),
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/** 前端获取生效的开屏广告信息,可能没有 GET /b2b2c/pbcScreenAdvertisement/getFrontAd */
|
|
|
export async function getFrontAdUsingGet(options?: { [key: string]: any }) {
|
|
|
return request<API.AjaxResultPbcScreenAdvertisement_>(
|
|
|
'/b2b2c/pbcScreenAdvertisement/getFrontAd',
|
|
|
{
|
|
|
method: 'GET',
|
|
|
...(options || {}),
|
|
|
},
|
|
|
);
|
|
|
}
|
|
|
|
|
|
/** 获取开屏广告分页 分页 POST /b2b2c/pbcScreenAdvertisement/getScreenAdPage */
|
|
|
export async function getScreenAdPageUsingPost(
|
|
|
body: API.PbcScreenAdvertisement,
|
|
|
options?: { [key: string]: any },
|
|
|
) {
|
|
|
return request<API.AjaxResultIPagePbcScreenAdvertisement_>(
|
|
|
'/b2b2c/pbcScreenAdvertisement/getScreenAdPage',
|
|
|
{
|
|
|
method: 'POST',
|
|
|
headers: {
|
|
|
'Content-Type': 'application/json',
|
|
|
},
|
|
|
data: body,
|
|
|
...(options || {}),
|
|
|
},
|
|
|
);
|
|
|
}
|
|
|
|
|
|
/** 根据id删除单个开屏广告 POST /b2b2c/pbcScreenAdvertisement/removeAd */
|
|
|
export async function removeAdUsingPost(
|
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
|
params: API.removeAdUsingPOSTParams,
|
|
|
options?: { [key: string]: any },
|
|
|
) {
|
|
|
return request<API.AjaxResultString_>('/b2b2c/pbcScreenAdvertisement/removeAd', {
|
|
|
method: 'POST',
|
|
|
params: {
|
|
|
...params,
|
|
|
},
|
|
|
...(options || {}),
|
|
|
});
|
|
|
}
|