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

import * as API from './types';

/** 登录 POST /app/login */
export async function appLoginPost({
  body,
  options,
}: {
  body: API.LoginBo;
  options?: CustomRequestOptions;
}) {
  return request<API.RMapObject>('/app/login', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
