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

/** 创建付款任务 POST /operation/createPaymentTask */
export async function createPaymentTask(
	body: BusinessAPI.PaymentTaskCreateCmd,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.SingleResponsePaymentTaskVO>(
		'/operation/createPaymentTask',
		{
			method: 'POST',
			headers: {
				'Content-Type': 'application/json',
			},
			data: body,
			...(options || {}),
		},
	);
}

/** 付款任务删除 DELETE /operation/destroyPaymentTask */
export async function destroyPaymentTask(
	body: BusinessAPI.PaymentTaskDestroyCmd,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.Response>('/operation/destroyPaymentTask', {
		method: 'DELETE',
		headers: {
			'Content-Type': 'application/json',
		},
		data: body,
		...(options || {}),
	});
}

/** 付款任务列表 GET /operation/listPaymentTask */
export async function listPaymentTask(
	// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
	params: BusinessAPI.listPaymentTaskParams,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.MultiResponsePaymentTaskVO>(
		'/operation/listPaymentTask',
		{
			method: 'GET',
			params: {
				...params,
				paymentTaskListQry: undefined,
				...params['paymentTaskListQry'],
			},
			...(options || {}),
		},
	);
}

/** 付款任务列表 GET /operation/pagePaymentTask */
export async function pagePaymentTask(
	// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
	params: BusinessAPI.pagePaymentTaskParams,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.PageResponsePaymentTaskVO>(
		'/operation/pagePaymentTask',
		{
			method: 'GET',
			params: {
				...params,
				paymentTaskPageQry: undefined,
				...params['paymentTaskPageQry'],
			},
			...(options || {}),
		},
	);
}

/** 付款任务详情 GET /operation/showPaymentTask */
export async function showPaymentTask(
	// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
	params: BusinessAPI.showPaymentTaskParams,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.SingleResponsePaymentTaskVO>(
		'/operation/showPaymentTask',
		{
			method: 'GET',
			params: {
				...params,
				paymentTaskShowQry: undefined,
				...params['paymentTaskShowQry'],
			},
			...(options || {}),
		},
	);
}

/** 付款任务统计 GET /operation/statisticsPaymentTask */
export async function statisticsPaymentTask(
	// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
	params: BusinessAPI.statisticsPaymentTaskParams,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.SingleResponsePaymentTaskStatisticsVO>(
		'/operation/statisticsPaymentTask',
		{
			method: 'GET',
			params: {
				...params,
				statisticsQry: undefined,
				...params['statisticsQry'],
			},
			...(options || {}),
		},
	);
}

/** 付款任务更新 PUT /operation/updatePaymentTask */
export async function updatePaymentTask(
	body: BusinessAPI.PaymentTaskUpdateCmd,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.SingleResponsePaymentTaskVO>(
		'/operation/updatePaymentTask',
		{
			method: 'PUT',
			headers: {
				'Content-Type': 'application/json',
			},
			data: body,
			...(options || {}),
		},
	);
}

/** 付款任务更新 PATCH /operation/updatePaymentTask */
export async function updatePaymentTask1(
	body: BusinessAPI.PaymentTaskUpdateCmd,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.SingleResponsePaymentTaskVO>(
		'/operation/updatePaymentTask',
		{
			method: 'PATCH',
			headers: {
				'Content-Type': 'application/json',
			},
			data: body,
			...(options || {}),
		},
	);
}
