remove bus from search and avoid import cycle (#46789)

* fix the import cicle

* fix some unittest

* fix removal bus from search
This commit is contained in:
ying-jeanne
2022-03-21 16:54:30 +01:00
committed by GitHub
parent 8199cc0cf8
commit 0d5a6c2194
13 changed files with 137 additions and 137 deletions

View File

@@ -1,6 +1,6 @@
package definitions
import "github.com/grafana/grafana/pkg/services/search"
import "github.com/grafana/grafana/pkg/models"
// swagger:route GET /search/sorting search searchSorting
//
@@ -75,7 +75,7 @@ type SearchParameters struct {
// swagger:response searchResponse
type SearchResponse struct {
// in: body
Body search.HitList `json:"body"`
Body models.HitList `json:"body"`
}
// swagger:response searchSortingResponse