Refactor du projet réduire le nombre de packages et sous-dossiers #200

Merged
vlbeaudoin merged 15 commits from vlbeaudoin/rework/single-package into main 2024-08-22 13:42:33 -04:00 AGit
Showing only changes of commit 53f41d64a8 - Show all commits

View file

@ -19,14 +19,14 @@ func (R *APIResponse) SetStatusCode(code int) {
R.statusCode = code R.statusCode = code
} }
type V1BucketsGET struct { type ListBucketsResponse struct {
APIResponse APIResponse
Data struct { Data struct {
Buckets map[string]string Buckets map[string]string
} }
} }
type V1BucketGET struct { type ReadBucketResponse struct {
APIResponse APIResponse
Data struct { Data struct {
Keys []string Keys []string
@ -38,7 +38,7 @@ type DataDocument struct {
Size int64 Size int64
} }
type V1DocumentsPOST struct { type CreateDocumentsResponse struct {
APIResponse APIResponse
Data struct { Data struct {
Bucket string Bucket string
@ -46,8 +46,7 @@ type V1DocumentsPOST struct {
} }
} }
// Deprecated: Use V1DocumentsPOST instead type CreateDocumentResponse struct {
type V1DocumentPOST struct {
APIResponse APIResponse
Data struct { Data struct {
Bucket string Bucket string
@ -55,11 +54,11 @@ type V1DocumentPOST struct {
} }
} }
type V1DocumentDELETE struct { type DeleteDocumentResponse struct {
APIResponse APIResponse
} }
type V1DocumentKeyPUT struct { type UpdateDocumentKeyResponse struct {
APIResponse APIResponse
Data struct { Data struct {
Bucket string Bucket string
@ -67,20 +66,21 @@ type V1DocumentKeyPUT struct {
} }
} }
type V1SeedPOST struct { type ExecuteSeedResponse struct {
APIResponse APIResponse
Data struct { Data struct {
Buckets []string Buckets []string
} }
} }
type V1SpecGET struct { type ReadSpecResponse struct {
APIResponse APIResponse
Data struct { Data struct {
Spec string Spec string
} }
} }
// Deprecated: Use ListBucketsResponse instead
type HandleAdminDocumentsUploadResponse struct { type HandleAdminDocumentsUploadResponse struct {
APIResponse APIResponse
Data struct { Data struct {
@ -88,6 +88,7 @@ type HandleAdminDocumentsUploadResponse struct {
} }
} }
// Deprecated: Use ListBucketsResponse instead
type HandleDocumentationResponse struct { type HandleDocumentationResponse struct {
APIResponse APIResponse
Data struct { Data struct {
@ -95,11 +96,13 @@ type HandleDocumentationResponse struct {
} }
} }
// Deprecated: Use CreateDocumentResponse instead
type UploadDocumentAPIResponse struct { type UploadDocumentAPIResponse struct {
APIResponse APIResponse
Data UploadDocumentResponseData Data UploadDocumentResponseData
} }
// Deprecated: Use DataDocument instead
type UploadDocumentResponseData struct { type UploadDocumentResponseData struct {
Bucket string Bucket string
Object string Object string