Skip to content

Commit

Permalink
feat: image add findall, delete by pet id
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Feb 12, 2024
1 parent 36b5a81 commit b007e37
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions johnjud/file/image/v1/image.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ package johnjud.file.image.v1;
option go_package = "johnjud/file/image/v1";

service ImageService {
rpc FindAll(FindAllImageRequest) returns (FindAllImageResponse){}
rpc Upload(UploadImageRequest) returns (UploadImageResponse){}
rpc FindByPetId(FindImageByPetIdRequest) returns (FindImageByPetIdResponse) {}
rpc AssignPet(AssignPetRequest) returns (AssignPetResponse) {}
rpc Delete(DeleteImageRequest) returns (DeleteImageResponse) {}
rpc DeleteByPetId(DeleteByPetIdRequest) returns (DeleteByPetIdResponse) {}
}

message Image{
Expand All @@ -18,6 +20,14 @@ message Image{
string objectKey = 4;
}

// Find All Image

message FindAllImageRequest{}

message FindAllImageResponse{
repeated Image images = 1;
}

// Upload Image

message UploadImageRequest{
Expand Down Expand Up @@ -59,4 +69,14 @@ message DeleteImageRequest{

message DeleteImageResponse{
bool success = 1;
}

// Delete Images by Pet Id

message DeleteByPetIdRequest{
string petId = 1;
}

message DeleteByPetIdResponse{
bool success = 1;
}

0 comments on commit b007e37

Please sign in to comment.