Skip to content

Commit

Permalink
count proto
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jul 20, 2024
1 parent fdd8c46 commit 2d0cf43
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions rpkm67/backend/count/count.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
syntax = "proto3";

package rpkm67.backend.count.v1;

option go_package = "rpkm67/backend/count/v1";

service CountService {
rpc FindAll(FindAllCountRequest) returns (FindAllCountResponse){}
rpc Create(CreateCountRequest) returns (CreateCountResponse) {}
}

message Count{
string name = 1;
}

// FindAll
message FindAllCountRequest{
}

message FindAllCountResponse{
repeated Count counts = 1;
}

// Create
message CreateCountRequest{
string name = 1;
}

message CreateCountResponse{
Count count = 1;
}

0 comments on commit 2d0cf43

Please sign in to comment.