21 lines
551 B
Go
21 lines
551 B
Go
// Code scaffolded by goctl. Safe to edit.
|
|
// goctl 1.9.2
|
|
|
|
package console
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/zero-ppanel/zero-ppanel/apps/admin/internal/logic/console"
|
|
"github.com/zero-ppanel/zero-ppanel/apps/admin/internal/svc"
|
|
"github.com/zero-ppanel/zero-ppanel/pkg/result"
|
|
)
|
|
|
|
func GetConsoleStatsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
|
l := console.NewGetConsoleStatsLogic(r.Context(), svcCtx)
|
|
resp, err := l.GetConsoleStats()
|
|
result.HttpResult(r, w, resp, err)
|
|
}
|
|
}
|