Victor Lacasse-Beaudoin
8cce7414ef
Refactor UploadDocumentResponse selon type models.Response Implémenter models.Response struct et models.Responder interface
25 lines
374 B
Go
25 lines
374 B
Go
package models
|
|
|
|
type Responder interface {
|
|
Respond() Responder
|
|
}
|
|
|
|
type Response struct {
|
|
StatusCode int `json:"status_code"`
|
|
Message string
|
|
}
|
|
|
|
func (r Response) Respond() Responder {
|
|
return r
|
|
}
|
|
|
|
type UploadDocumentResponse struct {
|
|
Response
|
|
Data UploadDocumentResponseData
|
|
}
|
|
|
|
type UploadDocumentResponseData struct {
|
|
Bucket string
|
|
Object string
|
|
Size float64
|
|
}
|