From 3d911f3a3711cc6f8c9110d0e566dc85a01716b5 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Tue, 19 Dec 2023 19:32:03 -0500 Subject: [PATCH] refactor(apirequest): deprecate V1DocumentPOST et son constructeur --- apirequest/document.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apirequest/document.go b/apirequest/document.go index 92f317d..b5c1191 100644 --- a/apirequest/document.go +++ b/apirequest/document.go @@ -77,6 +77,7 @@ func (request V1DocumentsPOST) Request(v *voki.Voki) (response apiresponse.V1Doc var _ request.Requester[apiresponse.V1DocumentPOST] = V1DocumentPOST{} +// Deprecated: Use V1DocumentsPOST instead type V1DocumentPOST struct { Data struct { Document *multipart.FileHeader `document` @@ -86,6 +87,7 @@ type V1DocumentPOST struct { } } +// Deprecated: Use NewV1DocumentsPOST instead func NewV1DocumentPOST(bucket string, document *multipart.FileHeader) (request V1DocumentPOST, err error) { if bucket == "" { err = fmt.Errorf("NewV1DocumentPOST requires non-nil bucket name")