Files
ycc-proxy-server/app/main/api/internal/handler/agent/getteamstatisticshandler.go
2025-12-02 19:57:10 +08:00

18 lines
427 B
Go

package agent
import (
"net/http"
"ycc-server/app/main/api/internal/logic/agent"
"ycc-server/app/main/api/internal/svc"
"ycc-server/common/result"
)
func GetTeamStatisticsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := agent.NewGetTeamStatisticsLogic(r.Context(), svcCtx)
resp, err := l.GetTeamStatistics()
result.HttpResult(r, w, resp, err)
}
}