Skip to content
Snippets Groups Projects
Commit 6ac14c2e authored by Valera Shaitorov's avatar Valera Shaitorov :alien:
Browse files

добавлены комментарии

parent 05599182
No related branches found
No related tags found
1 merge request!7Изменены запросы Items API (gRPC): Delete, Undelete, Publish, Unpublish. Добавлена возможность обновлять значение системных полей при данных запросах
This commit is part of merge request !7. Comments created here will be created in the context of that merge request.
......@@ -123,7 +123,7 @@ message Filter {
}
message CreateOptions {
bool update_attrs = 1;
bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
}
message FindOptions {
......@@ -135,7 +135,7 @@ message FindOptions {
}
message UpdateOptions {
bool update_attrs = 1;
bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
}
message GetPublishedOptions {
......@@ -143,20 +143,20 @@ message GetPublishedOptions {
}
message DeleteOptions {
bool update_attrs = 1;
bool erase = 2;
bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
bool erase = 2; // полное удаление без сохранения удаленной версии объекта
}
message UndeleteOptions {
bool update_attrs = 1;
bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
}
message PublishOptions {
bool update_attrs = 1;
bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
}
message UnpublishOptions {
bool update_attrs = 1;
bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
}
message FindPublishedOptions {
......@@ -239,7 +239,7 @@ message UpdateRequest {
}
message DeleteRequest {
Item item = 1;
Item item = 1; // важны только переданные внутри идентификаторы или, если указана опция update_attrs, поля которые изменяются: created_by, created_at, created_rev_at, updated_by, updated_at
DeleteOptions options = 2;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment