修复产品修改、删除

This commit is contained in:
2024-10-15 00:23:07 +08:00
parent e6467b7004
commit 8f903b457f
31 changed files with 1292 additions and 111 deletions

View File

@@ -0,0 +1,19 @@
package topup
import (
"github.com/smartwalle/alipay/v3"
"net/http"
"tianyuan-api/apps/gateway/internal/logic/topup"
"tianyuan-api/apps/gateway/internal/svc"
)
func AliTopUpCallbackHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := topup.NewAliTopUpCallbackLogic(r.Context(), svcCtx)
err := l.AliTopUpCallback(r)
if err != nil {
alipay.ACKNotification(w)
}
}
}