18 lines
487 B
Go
18 lines
487 B
Go
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)
|
|
}
|
|
}
|