Explorar el Código

annotations: go vet fixes

bergquist hace 8 años
padre
commit
f14e25612e
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      pkg/services/annotations/annotations.go

+ 3 - 3
pkg/services/annotations/annotations.go

@@ -11,14 +11,14 @@ type Repository interface {
 type ItemQuery struct {
 	OrgId       int64    `json:"orgId"`
 	From        int64    `json:"from"`
-	To          int64    `json:"from"`
+	To          int64    `json:"to"`
 	Type        ItemType `json:"type"`
 	AlertId     int64    `json:"alertId"`
 	DashboardId int64    `json:"dashboardId"`
 	PanelId     int64    `json:"panelId"`
 	NewState    []string `json:"newState"`
 
-	Limit int64 `json:"alertId"`
+	Limit int64 `json:"limit"`
 }
 
 type DeleteParams struct {
@@ -48,7 +48,7 @@ type Item struct {
 	OrgId       int64    `json:"orgId"`
 	DashboardId int64    `json:"dashboardId"`
 	PanelId     int64    `json:"panelId"`
-	CategoryId  int64    `json:"panelId"`
+	CategoryId  int64    `json:"categoryId"`
 	Type        ItemType `json:"type"`
 	Title       string   `json:"title"`
 	Text        string   `json:"text"`