package admin_agent

import (
	"net/http"

	"qnc-server/app/main/api/internal/logic/admin_agent"
	"qnc-server/app/main/api/internal/svc"
	"qnc-server/common/result"
)

func AdminGetAgentConfigHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := admin_agent.NewAdminGetAgentConfigLogic(r.Context(), svcCtx)
		resp, err := l.AdminGetAgentConfig()
		result.HttpResult(r, w, resp, err)
	}
}
