Skip to content

Commit

Permalink
fix: adoptdto in userdto file
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jan 7, 2024
1 parent 8859b23 commit 31438ab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
15 changes: 0 additions & 15 deletions src/app/dto/adopt.dto.go

This file was deleted.

13 changes: 11 additions & 2 deletions src/app/dto/pet.dto.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ type CreatePetRequest struct {
Species string `json:"species" validate:"required"`
Name string `json:"name" validate:"required"`
Birthdate string `json:"birthdate" validate:"required"`
Gender pet.Gender `json:"gender" validate:"required" example:"male"`
Gender pet.Gender `json:"gender" validate:"required" example:"1"`
Habit string `json:"habit" validate:"required"`
Caption string `json:"caption"`
Status pet.Status `json:"status" validate:"required" example:"findhome"`
Status pet.Status `json:"status" validate:"required" example:"1"`
IsSterile *bool `json:"is_sterile" validate:"required"`
IsVaccinated *bool `json:"is_vaccinated" validate:"required"`
IsVisible *bool `json:"is_visible" validate:"required"`
Expand All @@ -58,6 +58,15 @@ type ChangeViewPetResponse struct {
Success bool `json:"success" validate:"required"`
}

type AdoptByRequest struct {
UserID string `json:"user_id" validate:"required"`
PetID string `json:"pet_id" validate:"required"`
}

type AdoptByResponse struct {
Success bool `json:"success"`
}

type UpdatePetRequest struct {
Type string `json:"type"`
Species string `json:"species"`
Expand Down

0 comments on commit 31438ab

Please sign in to comment.