From e9bc465353c1a5bdd6de2eab9c9b8f9974d0fd1d Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Wed, 17 Apr 2024 11:40:37 +0530 Subject: [PATCH] [server] Add request object for copying files --- server/ente/collection.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/ente/collection.go b/server/ente/collection.go index 763d07b9b6..61c46860a4 100644 --- a/server/ente/collection.go +++ b/server/ente/collection.go @@ -103,6 +103,13 @@ type AddFilesRequest struct { Files []CollectionFileItem `json:"files" binding:"required"` } +// CopyFileSyncRequest is request object for creating copy of Files, and those copy to the destination collection +type CopyFileSyncRequest struct { + SrcCollectionID int64 `json:"srcCollectionID" binding:"required"` + DstCollection int64 `json:"dstCollectionID" binding:"required"` + Files []CollectionFileItem `json:"files" binding:"required"` +} + // RemoveFilesRequest represents a request to remove files from a collection type RemoveFilesRequest struct { CollectionID int64 `json:"collectionID" binding:"required"`