Skip to content

Commit

Permalink
feat: CreateStampRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jun 30, 2024
1 parent e3627b1 commit d8a8f5c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions rpkm67/backend/stamp/v1/stamp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package rpkm67.backend.stamp.v1;
option go_package = "rpkm67/backend/stamp/v1";

service StampService {
rpc Create(CreateStampRequest) returns (CreateStampResponse){}
rpc FindByUserId(FindByUserIdStampRequest) returns (FindByUserIdStampResponse){}
rpc StampByUserId(StampByUserIdRequest) returns (StampByUserIdResponse) {}
}
Expand All @@ -19,6 +20,20 @@ message Stamp{
string stamp = 7;
}

// Create
message CreateStampRequest{
string userId = 1;
int32 pointA = 2;
int32 pointB = 3;
int32 pointC = 4;
int32 pointD = 5;
string stamp = 6;
}

message CreateStampResponse{
Stamp stamp = 1;
}

// FindByUserId
message FindByUserIdStampRequest{
string userId = 1;
Expand Down

0 comments on commit d8a8f5c

Please sign in to comment.