package agent

import (
	"net/http"

	"bdrp-server/app/main/api/internal/logic/agent"
	"bdrp-server/app/main/api/internal/svc"
	"bdrp-server/common/result"
)

func GetAgentInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := agent.NewGetAgentInfoLogic(r.Context(), svcCtx)
		resp, err := l.GetAgentInfo()
		result.HttpResult(r, w, resp, err)
	}
}
