Files
ycc-proxy-server/app/main/api/internal/handler/agent/getteamstatisticshandler.go

18 lines
427 B
Go
Raw Normal View History

2025-11-27 13:09:54 +08:00
package agent
import (
"net/http"
"ycc-server/app/main/api/internal/logic/agent"
"ycc-server/app/main/api/internal/svc"
2025-12-02 19:57:10 +08:00
"ycc-server/common/result"
2025-11-27 13:09:54 +08:00
)
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()
2025-12-02 19:57:10 +08:00
result.HttpResult(r, w, resp, err)
2025-11-27 13:09:54 +08:00
}
}