Init
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package console
|
||||
|
||||
import (
|
||||
"cs-agent/internal/services"
|
||||
|
||||
"github.com/kataras/iris/v12"
|
||||
"github.com/mlogclub/simple/web"
|
||||
"github.com/mlogclub/simple/web/params"
|
||||
)
|
||||
|
||||
type DashboardController struct {
|
||||
Ctx iris.Context
|
||||
}
|
||||
|
||||
func (c *DashboardController) GetOverview() *web.JsonResult {
|
||||
rangeValue, _ := params.Get(c.Ctx, "range")
|
||||
return web.JsonData(services.DashboardService.GetOverview(rangeValue))
|
||||
}
|
||||
Reference in New Issue
Block a user