Refactor models/response.go -> apiresponse/, webresponse/ #167

Merged
vlbeaudoin merged 3 commits from refactor/response into main 2023-10-24 17:57:47 -04:00
4 changed files with 33 additions and 30 deletions
Showing only changes of commit 206b45d41e - Show all commits

View file

@ -70,33 +70,3 @@ type UploadDocumentResponseData struct {
Object string
Size float64
}
type V1SeedResponse struct {
Response
Data struct {
Buckets []string
}
}
type V1BucketListResponse struct {
Response
Data struct {
Buckets map[string]string
}
}
type V1BucketReadResponse struct {
Response
Data struct {
Keys []string
}
}
type V1DocumentCreateResponse struct {
Response
Data struct {
Bucket string
Key string
Size int64
}
}

15
apiresponse/bucket.go Normal file
View file

@ -0,0 +1,15 @@
package apiresponse
type V1BucketListResponse struct {
Response
Data struct {
Buckets map[string]string
}
}
type V1BucketReadResponse struct {
Response
Data struct {
Keys []string
}
}

10
apiresponse/document.go Normal file
View file

@ -0,0 +1,10 @@
package apiresponse
type V1DocumentCreateResponse struct {
Response
Data struct {
Bucket string
Key string
Size int64
}
}

8
apiresponse/seed.go Normal file
View file

@ -0,0 +1,8 @@
package apiresponse
type V1SeedResponse struct {
Response
Data struct {
Buckets []string
}
}