From 8a35f96999d7dda410ecd9e8b8475b363475e239 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Tue, 19 Dec 2023 19:37:36 -0500 Subject: [PATCH] =?UTF-8?q?refactor(apiresponse):=20d=C3=A9placer=20d?= =?UTF-8?q?=C3=A9finition=20de=20document=20=C3=A0=20`DataDocument`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apiresponse/document.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/apiresponse/document.go b/apiresponse/document.go index c775da8..b6518b9 100644 --- a/apiresponse/document.go +++ b/apiresponse/document.go @@ -1,13 +1,15 @@ package apiresponse +type DataDocument struct { + Key string + Size int64 +} + type V1DocumentsPOST struct { Response Data struct { Bucket string - Documents struct { - Key string - Size int64 - } + Documents []DataDocument } } @@ -16,8 +18,7 @@ type V1DocumentPOST struct { Response Data struct { Bucket string - Key string - Size int64 + DataDocument } }