Split apiresponse en fichiers mieux nommés
This commit is contained in:
parent
0962ea5a20
commit
206b45d41e
4 changed files with 33 additions and 30 deletions
|
@ -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
15
apiresponse/bucket.go
Normal 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
10
apiresponse/document.go
Normal 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
8
apiresponse/seed.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package apiresponse
|
||||
|
||||
type V1SeedResponse struct {
|
||||
Response
|
||||
Data struct {
|
||||
Buckets []string
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue