Merge pull request #13324 from influxdata/fix_go_vet_issue
fix(http): fix go vet issuepull/13362/head
commit
0aba5ff747
|
@ -140,7 +140,11 @@ type dashboardLinks struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type dashboardResponse struct {
|
type dashboardResponse struct {
|
||||||
platform.Dashboard
|
ID platform.ID `json:"id,omitempty"`
|
||||||
|
OrganizationID platform.ID `json:"orgID,omitempty"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
Description string `json:"description"`
|
||||||
|
Meta platform.DashboardMeta `json:"meta"`
|
||||||
Cells []dashboardCellResponse `json:"cells"`
|
Cells []dashboardCellResponse `json:"cells"`
|
||||||
Labels []platform.Label `json:"labels"`
|
Labels []platform.Label `json:"labels"`
|
||||||
Links dashboardLinks `json:"links"`
|
Links dashboardLinks `json:"links"`
|
||||||
|
@ -174,7 +178,11 @@ func newDashboardResponse(d *platform.Dashboard, labels []*platform.Label) dashb
|
||||||
Labels: fmt.Sprintf("/api/v2/dashboards/%s/labels", d.ID),
|
Labels: fmt.Sprintf("/api/v2/dashboards/%s/labels", d.ID),
|
||||||
Organization: fmt.Sprintf("/api/v2/orgs/%s", d.OrganizationID),
|
Organization: fmt.Sprintf("/api/v2/orgs/%s", d.OrganizationID),
|
||||||
},
|
},
|
||||||
Dashboard: *d,
|
ID: d.ID,
|
||||||
|
OrganizationID: d.OrganizationID,
|
||||||
|
Name: d.Name,
|
||||||
|
Description: d.Description,
|
||||||
|
Meta: d.Meta,
|
||||||
Labels: []platform.Label{},
|
Labels: []platform.Label{},
|
||||||
Cells: []dashboardCellResponse{},
|
Cells: []dashboardCellResponse{},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue