diff --git a/proto/collections/collections.proto b/proto/collections/collections.proto index 569c42a21d3fdbf9ea3bea78bbb413ec296449b6..7bcf1303c9608a832fb604dd9c0eef0405eb24da 100644 --- a/proto/collections/collections.proto +++ b/proto/collections/collections.proto @@ -85,7 +85,7 @@ message Collection { } message CreateRequest { - Collection coll = 1; + Collection collection = 1; } message CreateResponse { Collection created = 1; @@ -98,12 +98,12 @@ message GetOptions { message GetRequest { string space_id = 1; string env_id = 2; - string id = 3; + string collection_id = 3; GetOptions options = 4; } message GetResponse { - Collection coll = 1; + Collection collection = 1; } message ListRequest { @@ -122,24 +122,24 @@ message ListRequest { Filter filter = 5; } message ListResponse { - repeated Collection colls = 1; + repeated Collection collections = 1; } message UpdateRequest { - Collection coll = 1; + Collection collection = 1; } message SetSchemaRequest { string space_id = 1; string env_id = 2; - string id = 3; + string collection_id = 3; string schema = 4; } message DeleteRequest { string space_id = 1; string env_id = 2; - string id = 3; + string collection_id = 3; } service Collections { diff --git a/proto/common/common.proto b/proto/common/common.proto index b0e6885373735dabadfefbf48b433c634c3b2a00..3c9ee41313d1f7fb126e329cd367157ecc04f49e 100644 --- a/proto/common/common.proto +++ b/proto/common/common.proto @@ -5,7 +5,6 @@ option go_package = "git.perx.ru/perxis/perxis-go/proto/common;common"; package common; import "google/protobuf/struct.proto"; -import "google/protobuf/timestamp.proto"; // Deprecated // Поддержка этой реализации фильтра осталась только РІ запросе РїРѕРёСЃРєР° записей (Items.Find) diff --git a/proto/environments/environments.proto b/proto/environments/environments.proto index d2b376cd1278f68e31169ba6d87ac994e8ce839e..0e294968f2aab128605e5e87eb6ad51ee46c7110 100644 --- a/proto/environments/environments.proto +++ b/proto/environments/environments.proto @@ -55,7 +55,7 @@ message ListResponse { message GetRequest { string space_id = 1; - string id = 2; + string env_id = 2; } message GetResponse { @@ -68,24 +68,24 @@ message UpdateRequest { message SetAliasRequest { string space_id = 1; - string id = 2; + string env_id = 2; string alias = 3; } message RemoveAliasRequest { string space_id = 1; - string id = 2; + string env_id = 2; string alias = 3; } message DeleteRequest { string space_id = 1; - string id = 2; + string env_id = 2; } message MigrateRequest { string space_id = 1; - string id = 2; + string env_id = 2; MigrateOptions options = 10; } diff --git a/proto/images/images.proto b/proto/images/images.proto index 53f60e5dd0b70ede6fd13a2fac6cdc8de60d6f00..b58c473680bc45b6f8ed2e0c74adcf1c36f5c96b 100644 --- a/proto/images/images.proto +++ b/proto/images/images.proto @@ -38,4 +38,3 @@ service Images { // Возвращает объект File СЃ заполненным полем File.URL rpc Get(GetRequest) returns(GetResponse) {} } - diff --git a/proto/invitations/invitations.proto b/proto/invitations/invitations.proto index c7be5b0145ceb7dbae9982fcb17335403ba4c665..501fa2287dba670fda6f9b20e219b1737376b3d1 100644 --- a/proto/invitations/invitations.proto +++ b/proto/invitations/invitations.proto @@ -3,6 +3,7 @@ syntax = "proto3"; import "google/protobuf/timestamp.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/wrappers.proto"; +import "common/common.proto"; option go_package = "git.perx.ru/perxis/perxis-go/proto/invitations;invitations"; @@ -28,12 +29,6 @@ message Filter { repeated string role = 6; } -message FindOptions { - repeated string sort = 1; - int32 page_num = 2; - int32 page_size = 3; -} - message CreateRequest { Invitation invitation = 1; } @@ -69,7 +64,7 @@ message AcceptInvitationResponse {} message FindRequest { Filter filter = 1; - FindOptions opts = 2; + common.FindOptions options = 3; } message FindResponse { diff --git a/proto/organizations/organizations.proto b/proto/organizations/organizations.proto index 6b65535028f01fa6538ee8ec73d58a7b7efd420d..d13b7de2707905926d6dc0323e2bbe8d72b18ae7 100644 --- a/proto/organizations/organizations.proto +++ b/proto/organizations/organizations.proto @@ -27,7 +27,7 @@ message CreateResponse { } message GetRequest { - string id = 1; + string org_id = 1; } message GetResponse { @@ -39,7 +39,7 @@ message UpdateRequest { } message DeleteRequest { - string id = 1; + string org_id = 1; } message Filter { @@ -49,7 +49,7 @@ message Filter { message FindRequest { Filter filter = 1; - common.FindOptions opts = 2; + common.FindOptions options = 2; } message FindResponse { diff --git a/proto/roles/roles.proto b/proto/roles/roles.proto index 9522c297b6d03ef2bd04cca1db6e090a8c75fdaa..2419ace1f161bb801bb0807dde016c5d3792ccee 100644 --- a/proto/roles/roles.proto +++ b/proto/roles/roles.proto @@ -44,7 +44,7 @@ message CreateResponse { message GetRequest { string space_id = 1; - string id = 2; + string role_id = 2; } message GetResponse { @@ -65,7 +65,7 @@ message ListResponse { message DeleteRequest { string space_id = 1; - string id = 2; + string role_id = 2; } service Roles { diff --git a/proto/spaces/spaces.proto b/proto/spaces/spaces.proto index 714a06adb4f04a8e1650ae64ba6b56c593f32773..1b1d07c36c633fc769a1a80a7f1183487c017506 100644 --- a/proto/spaces/spaces.proto +++ b/proto/spaces/spaces.proto @@ -74,21 +74,21 @@ message UpdateRequest { } message UpdateConfigRequest { - string id = 1; + string space_id = 1; Config config = 2; } message DeleteRequest { - string id = 1; + string space_id = 1; } message TransferRequest { - string id = 1; // Рдентификатор перемещаемого пространства + string space_id = 1; // Рдентификатор перемещаемого пространства string transfer_to_org = 2; // Рдентификатор организации, РІ которую пространство должно быть перемещено } message AbortTransferRequest { - string id = 1; // Рдентификатор перемещаемого пространства + string space_id = 1; // Рдентификатор перемещаемого пространства } message ListTransfersRequest { @@ -100,7 +100,7 @@ message ListTransfersResponse { } message MoveRequest { - string id = 1; // Рдентификатор перемещаемого пространства + string space_id = 1; // Рдентификатор перемещаемого пространства string org_id = 2; // Рдентификатор организации, РІ которую пространство должно быть перемещено. Обязателен для заполнения только РІ случае запросов СЃ системным уровнем доступа, РІ остальных случаях опционален } diff --git a/proto/users/users.proto b/proto/users/users.proto index c68f9aeb7663584269f383ce63c2ac4230db3582..0287fd9490e8800ab15e77c685ddace817ab2fe4 100644 --- a/proto/users/users.proto +++ b/proto/users/users.proto @@ -48,7 +48,7 @@ message CreateResponse { // userId = `current` для получения текущего пользователя message GetRequest { - string id = 1; + string user_id = 1; } message GetResponse {