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

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// @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 || {}),
});
}