diff --git a/app/pubspec.lock b/app/pubspec.lock index 4c3698f..5acc4f3 100644 --- a/app/pubspec.lock +++ b/app/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.2.0" boolean_selector: dependency: transitive description: @@ -150,7 +150,7 @@ packages: name: quiver url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" sky_engine: dependency: transitive description: flutter @@ -197,7 +197,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.4" + version: "0.2.5" typed_data: dependency: transitive description: diff --git a/protos/models/password.proto b/protos/models/password.proto new file mode 100644 index 0000000..a14533f --- /dev/null +++ b/protos/models/password.proto @@ -0,0 +1,14 @@ +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; + string url = 6; +} \ No newline at end of file diff --git a/protos/services/passwords_service.proto b/protos/services/passwords_service.proto new file mode 100644 index 0000000..c8e3895 --- /dev/null +++ b/protos/services/passwords_service.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +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