Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[server] Add request object for copying files

Neeraj Guptae9bc465353c1
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"`