2025-07-08 17:02:10 +08:00
|
|
|
import { http } from '@/http/http'
|
2025-06-22 20:00:45 +08:00
|
|
|
|
|
|
|
|
export interface IFoo {
|
|
|
|
|
id: number
|
|
|
|
|
name: string
|
|
|
|
|
}
|
2025-06-22 19:51:07 +08:00
|
|
|
|
|
|
|
|
export function foo() {
|
2025-06-22 20:00:45 +08:00
|
|
|
return http.Get<IFoo>('/foo', {
|
2025-06-22 19:51:07 +08:00
|
|
|
params: {
|
|
|
|
|
name: '菲鸽',
|
|
|
|
|
page: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|