tyc-server/app/user/cmd/api/internal/handler/pay/wechatpayrefundcallbackhandler.go
2025-04-09 15:58:06 +08:00

18 lines
444 B
Go

package pay
import (
"net/http"
"tyc-server/app/user/cmd/api/internal/logic/pay"
"tyc-server/app/user/cmd/api/internal/svc"
"tyc-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)
}
}