This commit is contained in:
Mrx
2026-06-06 11:52:06 +08:00
parent a79c464329
commit a85436950e
16 changed files with 864 additions and 25 deletions

View File

@@ -0,0 +1,22 @@
package pay
import (
"net/http"
"qnc-server/app/main/api/internal/logic/pay"
"qnc-server/app/main/api/internal/svc"
)
func XpayPushHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
l := pay.NewXpayPushLogic(svcCtx)
return func(w http.ResponseWriter, r *http.Request) {
switch r.Method {
case http.MethodGet:
l.HandleGET(w, r)
case http.MethodPost:
l.HandlePOST(w, r)
default:
w.WriteHeader(http.StatusMethodNotAllowed)
}
}
}