diff --git a/protos/models/password.proto b/protos/models/password.proto new file mode 100644 index 0000000..71dabe2 --- /dev/null +++ b/protos/models/password.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +package stashall; + +import "models/tag.proto"; + +message Password { + string id = 1; + string login = 2; + string encryptedPassword = 3; + repeated Tag tags = 4; + string description = 5; +} \ No newline at end of file diff --git a/protos/services/passwords_service.proto b/protos/services/passwords_service.proto index d853270..c8e3895 100644 --- a/protos/services/passwords_service.proto +++ b/protos/services/passwords_service.proto @@ -4,7 +4,17 @@ package stashall; import "google/protobuf/empty.proto"; +import "models/password.proto"; + message CreatePasswordRequest { string login = 1; string password = 2; +} + +service PasswordsService { + rpc createPassword(CreatePasswordRequest) returns (google.protobuf.Empty); + + rpc editPassword(Password) returns (google.protobuf.Empty); + + rpc deletePassword(Password) returns (google.protobuf.Empty); } \ No newline at end of file