feat: 完成宠物列表接口对接

This commit is contained in:
ilhamtahir committed 2024-12-31 20:26:05 +08:00
1 parent e46919a938
commit 08d03cfbe0
5 files changed
+46 -21

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import type { CreatePetRequest, Pet } from '@/model/pet'
import httpClient from '@/api/httpClient'
export function createPet(createPetRequest: CreatePetRequest) {
return httpClient.post('/pets', createPetRequest)
}
export function getOwnPets() {
return httpClient.get<Pet[]>('/pets/own')
}