chore: added register to new interface

This commit is contained in:
2024-02-24 11:34:31 +00:00
parent 1c0d6a309b
commit 32771c7422
4 changed files with 221 additions and 28 deletions

View File

@@ -385,6 +385,10 @@ func (c Context) SendJSONStatus(w http.ResponseWriter, status int, dat any) *Err
return nil
}
func (c Context) JsonBadRequest(w http.ResponseWriter, dat any) *Error {
return c.SendJSONStatus(w, http.StatusBadRequest, dat)
}
func (c Context) Error400(err error, message string, w http.ResponseWriter, path string, base string, data AnyMap) *Error {
c.SetReportCaller(true)
c.Logger.Error(message)