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

import * as API from './types';

/** 修改会员配置 PUT /xjpmj/membershipConfig */
export async function xjpmjMembershipConfigPut({
  body,
  options,
}: {
  body: API.MembershipConfigBoEditGroup;
  options?: CustomRequestOptions;
}) {
  return request<API.RVoid>('/xjpmj/membershipConfig', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取会员配置详细信息 GET /xjpmj/membershipConfig/getInfo */
export async function xjpmjMembershipConfigGetInfoGet({
  options,
}: {
  options?: CustomRequestOptions;
}) {
  return request<API.RMembershipConfigVo>('/xjpmj/membershipConfig/getInfo', {
    method: 'GET',
    ...(options || {}),
  });
}
