Skip to content

Commit

Permalink
improve tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleak committed May 17, 2019
1 parent 7fa2201 commit bfb2253
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
9 changes: 9 additions & 0 deletions protos/models/tag.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
syntax = "proto3";

package stashall;

message Tag {
string id = 1;
string label = 2;
string color = 3;
}
9 changes: 2 additions & 7 deletions protos/services/tags_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@ syntax = "proto3";
package stashall;

import "google/protobuf/empty.proto";
import "models/tag.proto";

message CreateTagRequest {
string label = 1;
string color = 2;
}

message CreateTagResponse {
string id = 1;
string label = 2;
string color = 3;
}

message EditTagRequest {
string id = 1;
string label = 2;
Expand All @@ -25,7 +20,7 @@ message DeleteTagRequest { string id = 1; }

service TagsService {
/// The client must send the Authorization metadata
rpc createTag(CreateTagRequest) returns (CreateTagResponse);
rpc createTag(CreateTagRequest) returns (Tag);

/// The client must send the Authorization metadata
rpc editTag(EditTagRequest) returns (google.protobuf.Empty);
Expand Down

0 comments on commit bfb2253

Please sign in to comment.