|
|
// @ts-ignore
|
|
|
/* eslint-disable */
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
/** addSpecification 后台新增规格 POST /b2b2c/pbcSpecification/addSpecification */
|
|
|
export async function addSpecificationUsingPost(
|
|
|
body: API.PbcSpecification,
|
|
|
options?: { [key: string]: any },
|
|
|
) {
|
|
|
return request<API.AjaxResultString_>('/b2b2c/pbcSpecification/addSpecification', {
|
|
|
method: 'POST',
|
|
|
headers: {
|
|
|
'Content-Type': 'application/json',
|
|
|
},
|
|
|
data: body,
|
|
|
...(options || {}),
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/** addSpecificationItem 后台新增规格项 POST /b2b2c/pbcSpecification/addSpecificationItem */
|
|
|
export async function addSpecificationItemUsingPost(
|
|
|
body: API.PbcCommonDataValue,
|
|
|
options?: { [key: string]: any },
|
|
|
) {
|
|
|
return request<API.AjaxResultString_>('/b2b2c/pbcSpecification/addSpecificationItem', {
|
|
|
method: 'POST',
|
|
|
headers: {
|
|
|
'Content-Type': 'application/json',
|
|
|
},
|
|
|
data: body,
|
|
|
...(options || {}),
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/** changeSpecificationItemState 修改规格项状态,传pbcId和pbcState POST /b2b2c/pbcSpecification/changeSpecificationItemState */
|
|
|
export async function changeSpecificationItemStateUsingPost(
|
|
|
body: API.PbcCommonDataValue,
|
|
|
options?: { [key: string]: any },
|
|
|
) {
|
|
|
return request<API.AjaxResultString_>('/b2b2c/pbcSpecification/changeSpecificationItemState', {
|
|
|
method: 'POST',
|
|
|
headers: {
|
|
|
'Content-Type': 'application/json',
|
|
|
},
|
|
|
data: body,
|
|
|
...(options || {}),
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/** getSpecificationItemList 查看规格项 GET /b2b2c/pbcSpecification/getSpecificationItemList */
|
|
|
export async function getSpecificationItemListUsingGet(
|
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
|
params: API.getSpecificationItemListUsingGETParams,
|
|
|
options?: { [key: string]: any },
|
|
|
) {
|
|
|
return request<API.AjaxResultListPbcCommonDataValue_>(
|
|
|
'/b2b2c/pbcSpecification/getSpecificationItemList',
|
|
|
{
|
|
|
method: 'GET',
|
|
|
params: {
|
|
|
...params,
|
|
|
},
|
|
|
...(options || {}),
|
|
|
},
|
|
|
);
|
|
|
}
|
|
|
|
|
|
/** specificationList 规格列表 GET /b2b2c/pbcSpecification/specificationList */
|
|
|
export async function specificationListUsingGet(options?: { [key: string]: any }) {
|
|
|
return request<API.AjaxResultListPbcSpecification_>('/b2b2c/pbcSpecification/specificationList', {
|
|
|
method: 'GET',
|
|
|
...(options || {}),
|
|
|
});
|
|
|
}
|