Implémenter models.NotFoundResponse() #134
1 changed files with 14 additions and 0 deletions
|
@ -14,6 +14,20 @@ func (r Response) Respond() Responder {
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type SimpleResponse struct {
|
||||||
|
Message string
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r SimpleResponse) Respond() Responder {
|
||||||
|
return r
|
||||||
|
}
|
||||||
|
|
||||||
|
func NotFoundResponse() SimpleResponse {
|
||||||
|
return SimpleResponse{
|
||||||
|
Message: "Not Found",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
type HandleAdminDocumentsUploadResponse struct {
|
type HandleAdminDocumentsUploadResponse struct {
|
||||||
Response
|
Response
|
||||||
Data struct {
|
Data struct {
|
||||||
|
|
Loading…
Reference in a new issue