From 730f95d129d363a5a06f360d595f2f2d871bd0f3 Mon Sep 17 00:00:00 2001 From: Semyon Krestyaninov <krestyaninov@perx.ru> Date: Mon, 18 Nov 2024 12:42:26 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=94=D0=BB=D1=8F=20Items=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D0=BE=D0=B4=20=D0=B4=D0=BB=D1=8F=20=D0=B7=D0=B0=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D1=80=D0=B0=D0=B1=D0=BE=D1=87=D0=B5=D0=B9=20?= =?UTF-8?q?=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D0=B8=20=D0=BD=D0=B0=20=D0=B2?= =?UTF-8?q?=D1=8B=D0=B1=D1=80=D0=B0=D0=BD=D0=BD=D1=83=D1=8E=20=D1=80=D0=B5?= =?UTF-8?q?=D0=B2=D0=B8=D0=B7=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proto/items/items.proto | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/proto/items/items.proto b/proto/items/items.proto index a8cc3c8..106bbd5 100644 --- a/proto/items/items.proto +++ b/proto/items/items.proto @@ -300,6 +300,18 @@ message UndeleteRequest { UndeleteOptions options = 2; } +message CheckoutRevisionRequest { + string space_id = 1; + string env_id = 2; + string collection_id = 3; + string item_id = 4; + string revision_id = 5; +} + +message CheckoutRevisionResponse { + string stored_revision_id = 1; // Версия ревизии которая была создана или соответствует предыдущему рабочему контенту +} + message PublishRequest { Item item = 1; PublishOptions options = 2; @@ -310,6 +322,7 @@ message UnpublishRequest { UnpublishOptions options = 2; } + message GetPublishedRequest { string space_id = 1; string env_id = 2; @@ -435,6 +448,7 @@ service Items { rpc Unpublish(UnpublishRequest) returns(google.protobuf.Empty) {} rpc GetPublished(GetPublishedRequest) returns(GetPublishedResponse) {} rpc FindPublished(FindPublishedRequest) returns(FindPublishedResponse) {} + rpc CheckoutRevision(CheckoutRevisionRequest) returns(CheckoutRevisionResponse) {} /** * Расчет значений по существующим данным. Например, получение среднего значения поля -- GitLab