Ajouter et implémenter models.NotImplementedResponse()

This commit is contained in:
Victor Lacasse-Beaudoin 2023-08-23 15:43:10 -04:00
parent 742cf9999b
commit b19238e1cc
2 changed files with 10 additions and 3 deletions

View file

@ -1,5 +1,7 @@
package models
import "net/http"
type Responder interface {
Respond() Responder
}
@ -28,6 +30,12 @@ func NotFoundResponse() SimpleResponse {
}
}
func NotImplementedResponse() (int, SimpleResponse) {
return http.StatusNotImplemented, SimpleResponse{
Message: "Not Implemented",
}
}
type HandleAdminDocumentsUploadResponse struct {
Response
Data struct {