import { request } from '@/utils/request'
export interface IFooItem {
  id: string
  name: string
}

/** GET 请求 */
export const getFooAPI = (name: string) => request.get<IFooItem>('/foo', { name })

/** POST 请求 */
export const postFooAPI = (name: string) => request.post<IFooItem>('/foo', { name }, { name })
