netquery: split up query payload into a dedicated file

This commit is contained in:
Patrick Pacher
2023-09-14 08:39:15 +02:00
parent d5c4495991
commit ba72c204d3
3 changed files with 306 additions and 292 deletions

View File

@@ -86,23 +86,6 @@ type (
Value string `json:"value"`
}
QueryRequestPayload struct {
Select Selects `json:"select"`
Query Query `json:"query"`
OrderBy OrderBys `json:"orderBy"`
GroupBy []string `json:"groupBy"`
TextSearch *TextSearch `json:"textSearch"`
// A list of databases to query. If left empty,
// both, the LiveDatabase and the HistoryDatabase are queried
Databases []DatabaseName `json:"databases"`
Pagination
selectedFields []string
whitelistedFields []string
paramMap map[string]interface{}
}
QueryActiveConnectionChartPayload struct {
Query Query `json:"query"`
TextSearch *TextSearch `json:"textSearch"`