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

/** 系统设置详情 GET /operation/showSetting */
export async function showSetting(
	// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
	params: BusinessAPI.showSettingParams,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.SingleResponseSettingVO>(
		'/operation/showSetting',
		{
			method: 'GET',
			params: {
				...params,
				settingShowQry: undefined,
				...params['settingShowQry'],
			},
			...(options || {}),
		},
	);
}

/** 系统设置更新 PUT /operation/updateSetting */
export async function updateSetting(
	body: BusinessAPI.SettingUpdateCmd,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.SingleResponseSettingVO>(
		'/operation/updateSetting',
		{
			method: 'PUT',
			headers: {
				'Content-Type': 'application/json',
			},
			data: body,
			...(options || {}),
		},
	);
}

/** 系统设置更新 PATCH /operation/updateSetting */
export async function updateSetting1(
	body: BusinessAPI.SettingUpdateCmd,
	options?: { [key: string]: any },
) {
	return request<BusinessAPI.SingleResponseSettingVO>(
		'/operation/updateSetting',
		{
			method: 'PATCH',
			headers: {
				'Content-Type': 'application/json',
			},
			data: body,
			...(options || {}),
		},
	);
}
