From 4f5f267c5e0ae66f4f3da729fbdb8d69d802d27b Mon Sep 17 00:00:00 2001 From: Idhibhat Pankam Date: Tue, 9 Jan 2024 18:59:34 +0700 Subject: [PATCH] fix: pet gender, stutus use string --- johnjud/backend/pet/v1/pet.proto | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/johnjud/backend/pet/v1/pet.proto b/johnjud/backend/pet/v1/pet.proto index a214b80..331ac88 100644 --- a/johnjud/backend/pet/v1/pet.proto +++ b/johnjud/backend/pet/v1/pet.proto @@ -16,27 +16,17 @@ service PetService { rpc AdoptPet(AdoptPetRequest) returns (AdoptPetResponse) {} } -enum PetStatus{ - FINDHOME = 0; - ADOPTED = 1; -} - -enum Gender{ - MALE = 0; - FEMALE = 1; -} - message Pet{ string id = 1; string type = 2; string species = 3; string name = 4; string birthdate = 5; - Gender gender = 6; + string gender = 6; string habit = 7; string caption = 8; repeated johnjud.file.image.v1.Image images = 9; - PetStatus status = 10; + string status = 10; bool isSterile = 11; bool isVaccinated = 12; bool isVisible = 13;