From 17fb5f16d1034a95cfeca42314d321de47c239b4 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Mon, 20 Nov 2023 17:20:26 -0500 Subject: [PATCH] =?UTF-8?q?fix!:=20ajouter=20struct=20tags=20=C3=A0=20rout?= =?UTF-8?q?es=20documents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BREAKING: ajouter struct tags pour documents request --- apirequest/document.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apirequest/document.go b/apirequest/document.go index 2cdb218..e4cfa3c 100644 --- a/apirequest/document.go +++ b/apirequest/document.go @@ -16,10 +16,10 @@ var _ request.Requester[apiresponse.V1DocumentPOST] = V1DocumentPOST{} type V1DocumentPOST struct { Data struct { - Document *multipart.FileHeader + Document *multipart.FileHeader `document` } Params struct { - Bucket string + Bucket string `json:"bucket"` } } @@ -63,8 +63,8 @@ var _ request.Requester[apiresponse.V1DocumentDELETE] = V1DocumentDELETE{} type V1DocumentDELETE struct { Params struct { - Bucket string - Document string + Bucket string `json:"bucket"` + Document string `json:"document"` } } -- 2.45.2