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
|
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