Ajouter et implémenter models.NotImplementedResponse()
This commit is contained in:
parent
742cf9999b
commit
b19238e1cc
2 changed files with 10 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue