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.

75 lines
2.3 KiB
TypeScript

1 year ago
// @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 GET /b2b2c/pbcSpecification/changeSpecificationItemState */
export async function changeSpecificationItemStateUsingGet(
body: API.PbcCommonDataValue,
options?: { [key: string]: any },
) {
return request<API.AjaxResultString_>('/b2b2c/pbcSpecification/changeSpecificationItemState', {
method: 'GET',
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 || {}),
});
}