package admin_agent

import (
	"net/http"

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

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