Skip to content

Commit

Permalink
feat: CheckPin
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jun 30, 2024
1 parent 6cbae0d commit 3185825
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions rpkm67/backend/pin/v1/pin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ option go_package = "rpkm67/backend/pin/v1";
service PinService {
rpc FindAll(FindAllPinRequest) returns (FindAllPinResponse){}
rpc ResetPin(ResetPinRequest) returns (ResetPinResponse) {}
rpc CheckPin(CheckPinRequest) returns (CheckPinResponse) {}
}

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

Expand All @@ -24,9 +25,19 @@ message FindAllPinResponse{

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

message ResetPinResponse{
bool success = 1;
}

// CheckPin
message CheckPinRequest{
string activityId = 1;
string code = 2;
}

message CheckPinResponse{
bool isMatch = 1;
}

0 comments on commit 3185825

Please sign in to comment.