Files
ai-agent/internal/controllers/console/dashboard_controller.go
T
mlogclub efe801b8bf Init
2026-04-09 10:01:23 +08:00

19 lines
402 B
Go

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))
}