Refactor some reflection

This commit is contained in:
Jamie Curnow
2023-07-24 13:42:50 +10:00
parent d437c6b743
commit aae95798b2
20 changed files with 287 additions and 300 deletions

View File

@ -9,7 +9,6 @@ import (
c "npm/internal/api/context"
h "npm/internal/api/http"
"npm/internal/entity"
"npm/internal/model"
"npm/internal/tags"
"npm/internal/util"
@ -23,7 +22,7 @@ import (
// After we have determined what the Filters are to be, they are saved on the Context
// to be used later in other endpoints.
func ListQuery(obj interface{}) func(http.Handler) http.Handler {
schemaData := entity.GetFilterSchema(obj, true)
schemaData := tags.GetFilterSchema(obj)
filterMap := tags.GetFilterMap(obj)
return func(next http.Handler) http.Handler {