// @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('/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('/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('/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( '/b2b2c/pbcSpecification/getSpecificationItemList', { method: 'GET', params: { ...params, }, ...(options || {}), }, ); } /** specificationList 规格列表 GET /b2b2c/pbcSpecification/specificationList */ export async function specificationListUsingGet(options?: { [key: string]: any }) { return request('/b2b2c/pbcSpecification/specificationList', { method: 'GET', ...(options || {}), }); }