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

/** 审核列表 GET /operation/pageAudit */
export async function pageAudit(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: BusinessAPI.pageAuditParams,
  options?: { [key: string]: any },
) {
  return request<BusinessAPI.PageResponseAuditVO>("/operation/pageAudit", {
    method: "GET",
    params: {
      ...params,
      auditPageQry: undefined,
      ...params["auditPageQry"],
    },
    ...(options || {}),
  });
}

/** 审核详情 GET /operation/showAudit */
export async function showAudit(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: BusinessAPI.showAuditParams,
  options?: { [key: string]: any },
) {
  return request<BusinessAPI.SingleResponseAuditVO>("/operation/showAudit", {
    method: "GET",
    params: {
      ...params,
      auditShowQry: undefined,
      ...params["auditShowQry"],
    },
    ...(options || {}),
  });
}

/** 审核更新 PUT /operation/updateAudit */
export async function updateAudit(
  body: BusinessAPI.AuditUpdateCmd,
  options?: { [key: string]: any },
) {
  return request<BusinessAPI.SingleResponseAuditVO>("/operation/updateAudit", {
    method: "PUT",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 审核更新 PATCH /operation/updateAudit */
export async function updateAudit1(
  body: BusinessAPI.AuditUpdateCmd,
  options?: { [key: string]: any },
) {
  return request<BusinessAPI.SingleResponseAuditVO>("/operation/updateAudit", {
    method: "PATCH",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
