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

import * as API from './types';

/** 添加意见反馈 POST /app/feedback/add */
export async function appFeedbackAddPost({
  body,
  options,
}: {
  body: API.FeedbackBo;
  options?: CustomRequestOptions;
}) {
  return request<API.RVoid>('/app/feedback/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取意见反馈详细信息 GET /xjpmj/feedback/${param0} */
export async function xjpmjFeedbackIdGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjFeedbackidGetParams;
  options?: CustomRequestOptions;
}) {
  const { id: param0, ...queryParams } = params;

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

/** 删除意见反馈 DELETE /xjpmj/feedback/${param0} */
export async function xjpmjFeedbackIdsDelete({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjFeedbackidsDeleteParams;
  options?: CustomRequestOptions;
}) {
  const { ids: param0, ...queryParams } = params;

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

/** 查询意见反馈列表 GET /xjpmj/feedback/list */
export async function xjpmjFeedbackListGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjFeedbackListGetParams;
  options?: CustomRequestOptions;
}) {
  return request<API.TableDataInfoFeedbackVo>('/xjpmj/feedback/list', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
