pcm-coordinator/internal/handler/core/getscreencharthandler.go

18 lines
490 B
Go

package core
import (
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result"
"net/http"
"gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core"
"gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc"
)
func GetScreenChartHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := core.NewGetScreenChartLogic(r.Context(), svcCtx)
resp, err := l.GetScreenChart()
result.HttpResult(r, w, resp, err)
}
}