qnc-server-tob/app/user/cmd/api/internal/handler/pay/wechatpayrefundcallbackhandler.go

18 lines
444 B
Go
Raw Normal View History

2025-01-10 00:09:25 +08:00
package pay
import (
"net/http"
2025-04-11 13:10:17 +08:00
"qnc-server/app/user/cmd/api/internal/logic/pay"
"qnc-server/app/user/cmd/api/internal/svc"
"qnc-server/common/result"
2025-01-10 00:09:25 +08:00
)
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)
}
}