Ajouter SimpleResponse et NotFoundResponse()

This commit is contained in:
Victor Lacasse-Beaudoin 2023-08-22 15:24:57 -04:00
parent e53a879c92
commit 83d669b7a5

View file

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