Ajouter responses pour certaines routes

This commit is contained in:
Victor Lacasse-Beaudoin 2023-08-20 17:56:49 -04:00
parent 01317686ae
commit c8af2acae9

View file

@ -14,6 +14,20 @@ func (r Response) Respond() Responder {
return r return r
} }
type HandleAdminDocumentsUploadResponse struct {
Response
Data struct {
Buckets []Bucket
}
}
type HandleDocumentationResponse struct {
Response
Data struct {
Buckets []Bucket
}
}
type UploadDocumentResponse struct { type UploadDocumentResponse struct {
Response Response
Data UploadDocumentResponseData Data UploadDocumentResponseData
@ -31,3 +45,10 @@ type V1SeedResponse struct {
Buckets []string Buckets []string
} }
} }
type V1BucketListResponse struct {
Response
Data struct {
Buckets map[string]string
}
}