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

/** 修改 修改UpdateVO中不为空的字段 PUT /fKnowledgeDocumentLabelRel */
export async function update4(
  body: API.FKnowledgeDocumentLabelRelUpdateVO,
  options?: { [key: string]: any }
) {
  return request<API.RFKnowledgeDocumentLabelRel>(`/finyx/fKnowledgeDocumentLabelRel`, {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  })
}

/** 新增 POST /fKnowledgeDocumentLabelRel */
export async function save4(
  body: API.FKnowledgeDocumentLabelRelSaveVO,
  options?: { [key: string]: any }
) {
  return request<API.RFKnowledgeDocumentLabelRel>(`/finyx/fKnowledgeDocumentLabelRel`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  })
}

/** 删除 DELETE /fKnowledgeDocumentLabelRel */
export async function delete4(body: number[], options?: { [key: string]: any }) {
  return request<API.RBoolean>(`/finyx/fKnowledgeDocumentLabelRel`, {
    method: 'DELETE',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  })
}

/** 单体查询 单体查询 GET /fKnowledgeDocumentLabelRel/${param0} */
export async function get3(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.get3Params,
  options?: { [key: string]: any }
) {
  const { id: param0, ...queryParams } = params
  return request<API.RFKnowledgeDocumentLabelRelResultVO>(
    `/finyx/fKnowledgeDocumentLabelRel/${param0}`,
    {
      method: 'GET',
      params: { ...queryParams },
      ...(options || {})
    }
  )
}

/** 复制 POST /fKnowledgeDocumentLabelRel/copy */
export async function copy3(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.copy3Params,
  options?: { [key: string]: any }
) {
  return request<API.RFKnowledgeDocumentLabelRel>(`/finyx/fKnowledgeDocumentLabelRel/copy`, {
    method: 'POST',
    params: {
      ...params
    },
    ...(options || {})
  })
}

/** 查询单体详情 GET /fKnowledgeDocumentLabelRel/detail */
export async function getDetail3(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getDetail3Params,
  options?: { [key: string]: any }
) {
  return request<API.RFKnowledgeDocumentLabelRelResultVO>(
    `/finyx/fKnowledgeDocumentLabelRel/detail`,
    {
      method: 'GET',
      params: {
        ...params
      },
      ...(options || {})
    }
  )
}

/** 根据Id批量查询 根据Id批量查询 POST /fKnowledgeDocumentLabelRel/findByIds */
export async function findByIds3(body: number[], options?: { [key: string]: any }) {
  return request<API.RListFKnowledgeDocumentLabelRelResultVO>(
    `/finyx/fKnowledgeDocumentLabelRel/findByIds`,
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {})
    }
  )
}

/** 分页列表查询 POST /fKnowledgeDocumentLabelRel/page */
export async function page3(
  body: API.PageParamsFKnowledgeDocumentLabelRelPageQuery,
  options?: { [key: string]: any }
) {
  return request<API.RIPageFKnowledgeDocumentLabelRelResultVO>(
    `/finyx/fKnowledgeDocumentLabelRel/page`,
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {})
    }
  )
}

/** 批量查询 批量查询 POST /fKnowledgeDocumentLabelRel/query */
export async function query3(
  body: API.FKnowledgeDocumentLabelRelPageQuery,
  options?: { [key: string]: any }
) {
  return request<API.RListFKnowledgeDocumentLabelRelResultVO>(
    `/finyx/fKnowledgeDocumentLabelRel/query`,
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {})
    }
  )
}
