Files
ycc-proxy-server/app/main/api/internal/handler/admin_dashboard/admingetdashboardstatisticshandler.go

18 lines
487 B
Go
Raw Normal View History

2026-01-12 16:43:08 +08:00
package admin_dashboard
import (
"net/http"
"ycc-server/app/main/api/internal/logic/admin_dashboard"
"ycc-server/app/main/api/internal/svc"
"ycc-server/common/result"
)
func AdminGetDashboardStatisticsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := admin_dashboard.NewAdminGetDashboardStatisticsLogic(r.Context(), svcCtx)
resp, err := l.AdminGetDashboardStatistics()
result.HttpResult(r, w, resp, err)
}
}