package agent

import (
	"net/http"

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

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