admin endpoints polish and lint removal (#834)

This commit is contained in:
Michael Quigley
2025-02-03 13:10:13 -05:00
parent 14d03b88f7
commit 62d8086aed
46 changed files with 2224 additions and 456 deletions

View File

@ -12,8 +12,6 @@ import (
"github.com/go-openapi/runtime"
"github.com/go-openapi/runtime/middleware"
"github.com/go-openapi/validate"
"github.com/openziti/zrok/rest_model_zrok"
)
// NewDeleteFrontendParams creates a new DeleteFrontendParams object
@ -36,7 +34,7 @@ type DeleteFrontendParams struct {
/*
In: body
*/
Body *rest_model_zrok.DeleteFrontendRequest
Body DeleteFrontendBody
}
// BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface
@ -50,7 +48,7 @@ func (o *DeleteFrontendParams) BindRequest(r *http.Request, route *middleware.Ma
if runtime.HasBody(r) {
defer r.Body.Close()
var body rest_model_zrok.DeleteFrontendRequest
var body DeleteFrontendBody
if err := route.Consumer.Consume(r.Body, &body); err != nil {
res = append(res, errors.NewParseError("body", "body", "", err))
} else {
@ -65,7 +63,7 @@ func (o *DeleteFrontendParams) BindRequest(r *http.Request, route *middleware.Ma
}
if len(res) == 0 {
o.Body = &body
o.Body = body
}
}
}