import { http } from '@/utils/http' export interface IFooItem { id: string name: string } /** GET 请求 */ export const getFooAPI = (name: string) => { return http.get('/foo', { name }, { 'Content-Type-100': '100' }) } /** POST 请求 */ export const postFooAPI = (name: string) => { return http.post('/foo', { name }, { name }, { 'Content-Type-100': '100' }) }