From 7da95a064856b48db881dd9b95c89dac8f14e04f Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 18 May 2019 23:42:38 +0200 Subject: [PATCH] password spec --- protos/models/password.proto | 13 +++++++++++++ protos/services/passwords_service.proto | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100644 protos/models/password.proto 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