[build] fix src/* imports (#27)
[build] fix src/* imports Co-authored-by: Kassian Sun <kassiansun@outlook.com>
This commit is contained in:
parent
34feba31a6
commit
fc8a47373a
|
@ -6,14 +6,15 @@ package alerting
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
log "github.com/cihub/seelog"
|
||||
"infini.sh/console/model/alerting"
|
||||
httprouter "infini.sh/framework/core/api/router"
|
||||
"infini.sh/framework/core/orm"
|
||||
"infini.sh/framework/core/util"
|
||||
"net/http"
|
||||
log "src/github.com/cihub/seelog"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func (h *AlertAPI) createChannel(w http.ResponseWriter, req *http.Request, ps httprouter.Params) {
|
||||
|
@ -140,7 +141,7 @@ func (h *AlertAPI) deleteChannel(w http.ResponseWriter, req *http.Request, ps ht
|
|||
}
|
||||
|
||||
h.WriteJSON(w, util.MapStr{
|
||||
"ids": reqBody.ChannelIDs ,
|
||||
"ids": reqBody.ChannelIDs,
|
||||
"result": "deleted",
|
||||
}, 200)
|
||||
}
|
||||
|
|
|
@ -5,13 +5,14 @@
|
|||
package insight
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
log "github.com/cihub/seelog"
|
||||
httprouter "infini.sh/framework/core/api/router"
|
||||
"infini.sh/framework/core/insight"
|
||||
"infini.sh/framework/core/orm"
|
||||
"infini.sh/framework/core/util"
|
||||
"net/http"
|
||||
log "src/github.com/cihub/seelog"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
func (h *InsightAPI) createDashboard(w http.ResponseWriter, req *http.Request, ps httprouter.Params) {
|
||||
|
@ -163,7 +164,7 @@ func (h *InsightAPI) searchDashboard(w http.ResponseWriter, req *http.Request, p
|
|||
if keyword != "" {
|
||||
must = append(must, util.MapStr{
|
||||
"query_string": util.MapStr{
|
||||
"default_field":"*",
|
||||
"default_field": "*",
|
||||
"query": keyword,
|
||||
},
|
||||
})
|
||||
|
|
|
@ -6,14 +6,15 @@ package insight
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
log "github.com/cihub/seelog"
|
||||
httprouter "infini.sh/framework/core/api/router"
|
||||
"infini.sh/framework/core/insight"
|
||||
"infini.sh/framework/core/orm"
|
||||
"infini.sh/framework/core/util"
|
||||
"net/http"
|
||||
log "src/github.com/cihub/seelog"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func (h *InsightAPI) createVisualization(w http.ResponseWriter, req *http.Request, ps httprouter.Params) {
|
||||
|
|
|
@ -5,12 +5,13 @@
|
|||
package alerting
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
log "github.com/cihub/seelog"
|
||||
"infini.sh/console/model/alerting"
|
||||
"infini.sh/framework/core/orm"
|
||||
"infini.sh/framework/core/task"
|
||||
"infini.sh/framework/core/util"
|
||||
log "src/github.com/cihub/seelog"
|
||||
"time"
|
||||
)
|
||||
|
||||
func InitTasks() error {
|
||||
|
|
Loading…
Reference in New Issue