/* eslint-disable */
// @ts-ignore
import request from '@/http/vue-query';
import type { CustomRequestOptions } from '@/http/types';

import * as API from './types';

/** 帮助中心列表 GET /app/helpCenter/list */
export async function appHelpCenterListGet({
  options,
}: {
  options?: CustomRequestOptions;
}) {
  return request<API.RListHelpCenterVo>('/app/helpCenter/list', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 修改帮助中心 PUT /xjpmj/helpCenter */
export async function xjpmjHelpCenterPut({
  body,
  options,
}: {
  body: API.HelpCenterBoEditGroup;
  options?: CustomRequestOptions;
}) {
  return request<API.RVoid>('/xjpmj/helpCenter', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 新增帮助中心 POST /xjpmj/helpCenter */
export async function xjpmjHelpCenterPost({
  body,
  options,
}: {
  body: API.HelpCenterBoAddGroup;
  options?: CustomRequestOptions;
}) {
  return request<API.RVoid>('/xjpmj/helpCenter', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取帮助中心详细信息 GET /xjpmj/helpCenter/${param0} */
export async function xjpmjHelpCenterIdGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjHelpCenteridGetParams;
  options?: CustomRequestOptions;
}) {
  const { id: param0, ...queryParams } = params;

  return request<API.RHelpCenterVo>(`/xjpmj/helpCenter/${param0}`, {
    method: 'GET',
    params: { ...queryParams },
    ...(options || {}),
  });
}

/** 删除帮助中心 DELETE /xjpmj/helpCenter/${param0} */
export async function xjpmjHelpCenterIdsDelete({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjHelpCenteridsDeleteParams;
  options?: CustomRequestOptions;
}) {
  const { ids: param0, ...queryParams } = params;

  return request<API.RVoid>(`/xjpmj/helpCenter/${param0}`, {
    method: 'DELETE',
    params: { ...queryParams },
    ...(options || {}),
  });
}

/** 查询帮助中心列表 GET /xjpmj/helpCenter/list */
export async function xjpmjHelpCenterListGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjHelpCenterListGetParams;
  options?: CustomRequestOptions;
}) {
  return request<API.TableDataInfoHelpCenterVo>('/xjpmj/helpCenter/list', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
