62416baabc
- Updated all relevant API functions in agent.ts, company.ts, customer-contact.ts, customer.ts, dashboard.ts, ticket-config.ts, and ticket.ts to point to the new /api/dashboard paths. - Ensured that all request methods and payload structures remain unchanged to maintain existing functionality.
19 lines
404 B
Go
19 lines
404 B
Go
package dashboard
|
|
|
|
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))
|
|
}
|