ycc-server/app/main/api/internal/handler/pay/wechatpayrefundcallbackhandler.go

18 lines
436 B
Go
Raw Normal View History

2025-06-19 17:12:48 +08:00
package pay
import (
"net/http"
"ycc-server/app/main/api/internal/logic/pay"
"ycc-server/app/main/api/internal/svc"
"ycc-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)
}
}