Split réponses webs de apiresponse -> webresponse
This commit is contained in:
parent
206b45d41e
commit
ce0f387ebd
4 changed files with 37 additions and 30 deletions
|
@ -2,8 +2,6 @@ package apiresponse
|
|||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"git.agecem.com/agecem/agecem-org/models"
|
||||
)
|
||||
|
||||
type Responder interface {
|
||||
|
@ -45,28 +43,3 @@ func InternalServerErrorResponse() (int, SimpleResponse) {
|
|||
Message: "Internal Server Error",
|
||||
}
|
||||
}
|
||||
|
||||
type HandleAdminDocumentsUploadResponse struct {
|
||||
Response
|
||||
Data struct {
|
||||
Buckets []models.Bucket
|
||||
}
|
||||
}
|
||||
|
||||
type HandleDocumentationResponse struct {
|
||||
Response
|
||||
Data struct {
|
||||
Buckets []models.Bucket
|
||||
}
|
||||
}
|
||||
|
||||
type UploadDocumentResponse struct {
|
||||
Response
|
||||
Data UploadDocumentResponseData
|
||||
}
|
||||
|
||||
type UploadDocumentResponseData struct {
|
||||
Bucket string
|
||||
Object string
|
||||
Size float64
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue