package schedule

import (
	"gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/schedule"
	"gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc"
	"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result"
	"net/http"
)

func ScheduleGetAiResourceTypesHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := schedule.NewScheduleGetAiResourceTypesLogic(r.Context(), svcCtx)
		resp, err := l.ScheduleGetAiResourceTypes()
		result.HttpResult(r, w, resp, err)
	}
}
