package pay

import (
	"net/http"

	"sim-server/app/main/api/internal/logic/pay"
	"sim-server/app/main/api/internal/svc"
	"sim-server/common/result"
)

func WechatPayRefundCallbackHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := pay.NewWechatPayRefundCallbackLogic(r.Context(), svcCtx)
		err := l.WechatPayRefundCallback(w, r)
		result.HttpResult(r, w, nil, err)
	}
}
