Skip to content

Commit

Permalink
feat: pin
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jun 24, 2024
1 parent 6c53ecf commit 0c604fb
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions rpkm67/backend/pin/v1/pin.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
syntax = "proto3";

package rpkm67.backend.pin.v1;

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

service PinService {
rpc FindAll(FindAllPinRequest) returns (FindAllPinResponse){}
rpc ResetPin(ResetPinRequest) returns (ResetPinResponse) {}
}

message Pin{
string workshopId = 1;
string code = 2;
}

// FindAll
message FindAllPinRequest{
}

message FindAllPinResponse{
repeated Pin pins = 1;
}

// ResetPin
message ResetPinRequest{
string workshopId = 1;
}

message ResetPinResponse{
bool success = 1;
}

0 comments on commit 0c604fb

Please sign in to comment.