Skip to content

Commit

Permalink
fix: pet gender, stutus use string
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jan 9, 2024
1 parent 0995ef8 commit 4f5f267
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions johnjud/backend/pet/v1/pet.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4f5f267

Please sign in to comment.