first commit
This commit is contained in:
		| @@ -0,0 +1,17 @@ | ||||
| package pay | ||||
|  | ||||
| import ( | ||||
| 	"net/http" | ||||
|  | ||||
| 	"tydata-server/app/user/cmd/api/internal/logic/pay" | ||||
| 	"tydata-server/app/user/cmd/api/internal/svc" | ||||
| 	"tydata-server/common/result" | ||||
| ) | ||||
|  | ||||
| func AlipayCallbackHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | ||||
| 	return func(w http.ResponseWriter, r *http.Request) { | ||||
| 		l := pay.NewAlipayCallbackLogic(r.Context(), svcCtx) | ||||
| 		err := l.AlipayCallback(w, r) | ||||
| 		result.HttpResult(r, w, nil, err) | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user