// @ts-ignore
/* eslint-disable */
import request from '../request';

/** 创建纸箱产品 POST /operation/createBoxProduct */
export async function createBoxProduct(
	body: BusinessAPI.BoxProductCreateCmd,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.SingleResponseBoxProductVO>(
		'/operation/createBoxProduct',
		{
			method: 'POST',
			headers: {
				'Content-Type': 'application/json',
			},
			data: body,
			...(options || {}),
		},
	);
}

/** 纸箱产品删除 DELETE /operation/destroyBoxProduct */
export async function destroyBoxProduct(
	body: BusinessAPI.BoxProductDestroyCmd,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.Response>('/operation/destroyBoxProduct', {
		method: 'DELETE',
		headers: {
			'Content-Type': 'application/json',
		},
		data: body,
		...(options || {}),
	});
}

/** 纸箱产品拖拽排序 PUT /operation/dragBoxProduct */
export async function dragBoxProduct(
	body: BusinessAPI.BoxProductDragCmd,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.Response>('/operation/dragBoxProduct', {
		method: 'PUT',
		headers: {
			'Content-Type': 'application/json',
		},
		data: body,
		...(options || {}),
	});
}

/** 纸箱产品拖拽排序 PATCH /operation/dragBoxProduct */
export async function dragBoxProduct1(
	body: BusinessAPI.BoxProductDragCmd,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.Response>('/operation/dragBoxProduct', {
		method: 'PATCH',
		headers: {
			'Content-Type': 'application/json',
		},
		data: body,
		...(options || {}),
	});
}

/** 纸箱产品列表 GET /operation/listBoxProduct */
export async function listBoxProduct(
	// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
	params: BusinessAPI.listBoxProductParams,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.MultiResponseBoxProductVO>(
		'/operation/listBoxProduct',
		{
			method: 'GET',
			params: {
				...params,
				boxProductListQry: undefined,
				...params['boxProductListQry'],
			},
			...(options || {}),
		},
	);
}

/** 纸箱产品列表 GET /operation/pageBoxProduct */
export async function pageBoxProduct(
	// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
	params: BusinessAPI.pageBoxProductParams,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.PageResponseBoxProductVO>(
		'/operation/pageBoxProduct',
		{
			method: 'GET',
			params: {
				...params,
				boxProductPageQry: undefined,
				...params['boxProductPageQry'],
			},
			...(options || {}),
		},
	);
}

/** 纸箱产品详情 GET /operation/showBoxProduct */
export async function showBoxProduct(
	// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
	params: BusinessAPI.showBoxProductParams,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.SingleResponseBoxProductVO>(
		'/operation/showBoxProduct',
		{
			method: 'GET',
			params: {
				...params,
				boxProductShowQry: undefined,
				...params['boxProductShowQry'],
			},
			...(options || {}),
		},
	);
}

/** 纸箱产品更新 PUT /operation/updateBoxProduct */
export async function updateBoxProduct(
	body: BusinessAPI.BoxProductUpdateCmd,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.SingleResponseBoxProductVO>(
		'/operation/updateBoxProduct',
		{
			method: 'PUT',
			headers: {
				'Content-Type': 'application/json',
			},
			data: body,
			...(options || {}),
		},
	);
}

/** 纸箱产品更新 PATCH /operation/updateBoxProduct */
export async function updateBoxProduct1(
	body: BusinessAPI.BoxProductUpdateCmd,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.SingleResponseBoxProductVO>(
		'/operation/updateBoxProduct',
		{
			method: 'PATCH',
			headers: {
				'Content-Type': 'application/json',
			},
			data: body,
			...(options || {}),
		},
	);
}
