first commit

This commit is contained in:
Your Name
2024-12-26 16:41:17 +08:00
commit f8abb65023
101 changed files with 15618 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import { http } from '@/utils/http'
export interface IFooItem {
id: string
name: string
}
/** GET 请求 */
export const getFooAPI = (name: string) => {
return http.get<IFooItem>('/foo', { name })
}
/** POST 请求 */
export const postFooAPI = (name: string) => {
return http.post<IFooItem>('/foo', { name }, { name })
}