Implémenter models.NotFoundResponse() #134

Merged
vlbeaudoin merged 2 commits from refactor/not-found-response into main 2023-08-22 15:26:57 -04:00
Showing only changes of commit 83d669b7a5 - Show all commits

View file

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