Ajouter SimpleResponse et NotFoundResponse()
This commit is contained in:
parent
e53a879c92
commit
83d669b7a5
1 changed files with 14 additions and 0 deletions
|
@ -14,6 +14,20 @@ func (r Response) Respond() Responder {
|
|||
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 {
|
||||
Response
|
||||
Data struct {
|
||||
|
|
Loading…
Reference in a new issue