Fix linting

This commit is contained in:
Ivana Huckova
2022-06-09 15:40:10 +02:00
parent 763bbda241
commit e15c6a67bd
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -119,7 +119,7 @@ type SearchQueriesParams struct {
// in:query
// required: false
Page int `json:"page"`
// Limit the number of returned results
// Limit the number of returned results
// in:query
// required: false
Limit int `json:"limit"`
@@ -137,21 +137,21 @@ type SearchQueriesParams struct {
type CreateQueryParams struct {
// in:body
// required:true
Body queryhistory.CreateQueryInQueryHistoryCommand `json:"body"`
Body queryhistory.CreateQueryInQueryHistoryCommand `json:"body"`
}
// swagger:parameters patchQueryComment
type PatchQueryCommentParams struct {
// in:body
// required:true
Body queryhistory.PatchQueryCommentInQueryHistoryCommand `json:"body"`
Body queryhistory.PatchQueryCommentInQueryHistoryCommand `json:"body"`
}
// swagger:parameters migrateQueries
type MigrateQueriesParams struct {
// in:body
// required:true
Body queryhistory.MigrateQueriesToQueryHistoryCommand `json:"body"`
Body queryhistory.MigrateQueriesToQueryHistoryCommand `json:"body"`
}
//swagger:response getQueryHistorySearchResponse
+1 -1
View File
@@ -96,7 +96,7 @@ type CreateQueryInQueryHistoryCommand struct {
DatasourceUID string `json:"datasourceUid"`
// The JSON model of queries.
// required: true
// example: [ { "datasourceUid": "PE1C5CBDA0504A6A3", "queries": [ { "refId": "A", "key": "Q-87fed8e3-62ba-4eb2-8d2a-4129979bb4de-0", "scenarioId": "csv_content", "datasource": { "type": "testdata", "uid": "PD8C576611E62080A" } } ], "starred": false, "createdAt": 1643630762, "comment": "debugging" } ]
// example: [ { "datasourceUid": "PE1C5CBDA0504A6A3", "queries": [ { "refId": "A", "key": "Q-87fed8e3-62ba-4eb2-8d2a-4129979bb4de-0", "scenarioId": "csv_content", "datasource": { "type": "testdata", "uid": "PD8C576611E62080A" } } ], "starred": false, "createdAt": 1643630762, "comment": "debugging" } ]
Queries *simplejson.Json `json:"queries"`
}