From 61c4fd94767f8f82fa93f818aa0d2e7d88ee1bd6 Mon Sep 17 00:00:00 2001 From: duonganhthu43 Date: Fri, 19 May 2023 14:25:42 +0700 Subject: [PATCH] chore: add delete files (#1577) --- dozer-types/protos/cloud.proto | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dozer-types/protos/cloud.proto b/dozer-types/protos/cloud.proto index 0dd18e33cd..0c372f28d7 100644 --- a/dozer-types/protos/cloud.proto +++ b/dozer-types/protos/cloud.proto @@ -35,6 +35,7 @@ service DozerCloud { rpc list_files(ListFilesRequest) returns (ListFilesResponse); rpc update_files(UpdateFileRequest) returns (UpdateFileResponse); rpc save_files(SaveFilesRequest) returns (SaveFilesResponse); + rpc delete_files(DeleteFileRequest) returns (DeleteFileResponse); rpc OnLogMessage(LogMessageRequest) returns (stream LogMessage); rpc OnStatusUpdate(StatusUpdateRequest) returns (stream StatusUpdate); @@ -217,12 +218,16 @@ message FileInfo { string id = 1; File file = 2; } - +message DeleteFileRequest { + string app_id = 1; + repeated string file_ids = 2; +} +message DeleteFileResponse { +} message UpdateFileRequest { string app_id = 1; repeated FileInfo files = 2; } - message UpdateFileResponse { repeated FileInfo files = 1; }