Skip to content

Commit

Permalink
feat: udate selection
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jul 2, 2024
1 parent 947c6bc commit 1c79daa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rpkm67/backend/selection/v1/selection.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ option go_package = "rpkm67/backend/selection/v1";
service SelectionService {
rpc Create(CreateSelectionRequest) returns (CreateSelectionResponse){}
rpc FindByGroupId(FindByGroupIdSelectionRequest) returns (FindByGroupIdSelectionResponse) {}
rpc Update(UpdateSelectionRequest) returns (UpdateSelectionResponse) {}
rpc Delete(DeleteSelectionRequest) returns (DeleteSelectionResponse){}
rpc CountByBaanId(CountByBaanIdSelectionRequest) returns (CountByBaanIdSelectionResponse){}
}
Expand Down Expand Up @@ -43,6 +44,15 @@ message FindByGroupIdSelectionResponse{
repeated Selection selections = 1;
}

// Update
message UpdateSelectionRequest{
Selection selection = 1;
}

message UpdateSelectionResponse{
bool success = 1;
}

// Delete
message DeleteSelectionRequest{
string groupId = 1;
Expand Down

0 comments on commit 1c79daa

Please sign in to comment.