refactor(apiresponse): déplacer définition de document à DataDocument

This commit is contained in:
Victor Lacasse-Beaudoin 2023-12-19 19:37:36 -05:00
parent becd5659f3
commit 8a35f96999

View file

@ -1,13 +1,15 @@
package apiresponse package apiresponse
type DataDocument struct {
Key string
Size int64
}
type V1DocumentsPOST struct { type V1DocumentsPOST struct {
Response Response
Data struct { Data struct {
Bucket string Bucket string
Documents struct { Documents []DataDocument
Key string
Size int64
}
} }
} }
@ -16,8 +18,7 @@ type V1DocumentPOST struct {
Response Response
Data struct { Data struct {
Bucket string Bucket string
Key string DataDocument
Size int64
} }
} }