|
@@ -0,0 +1,48 @@
|
|
|
|
|
+
|
|
|
|
|
+package gen
|
|
|
|
|
+
|
|
|
|
|
+import (
|
|
|
|
|
+ "git.qianqiusoft.com/qianqiusoft/light-apiengine/entitys"
|
|
|
|
|
+ "github.com/gin-gonic/gin"
|
|
|
|
|
+
|
|
|
|
|
+ "git.qianqiusoft.com/qianqiusoft/light-apiengine/controllers/partial"
|
|
|
|
|
+
|
|
|
|
|
+ "git.qianqiusoft.com/qianqiusoft/light-apiengine/engine"
|
|
|
|
|
+)
|
|
|
|
|
+
|
|
|
|
|
+// PayCallbackController operations for PayCallback
|
|
|
|
|
+type PayCallbackController struct {
|
|
|
|
|
+ apiengine *engine.ApiEngine
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func NewPayCallbackController(e *engine.ApiEngine) *PayCallbackController {
|
|
|
|
|
+ controller := &PayCallbackController{e}
|
|
|
|
|
+ return controller
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+// Wxpay
|
|
|
|
|
+// @Title Wxpay
|
|
|
|
|
+// @Description 微信支付回调
|
|
|
|
|
+// @Success 200 {object} sysReturn
|
|
|
|
|
+// @Failure 403 :id is empty
|
|
|
|
|
+// @router /wxpay [post]
|
|
|
|
|
+func (c *PayCallbackController) Wxpay(ctx *gin.Context) {
|
|
|
|
|
+ //
|
|
|
|
|
+ db:=c.apiengine.BusinessOrmEngine[ctx.GetString("domain")]
|
|
|
|
|
+ partial.PayCallback_Wxpay(&entitys.CtrlContext{c.apiengine, ctx, db, c.apiengine.PlatformOrmEngine})
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// Alipay
|
|
|
|
|
+// @Title Alipay
|
|
|
|
|
+// @Description 支付宝支付回调
|
|
|
|
|
+// @Success 200 {object} sysReturn
|
|
|
|
|
+// @Failure 403 :id is empty
|
|
|
|
|
+// @router /alipay [post]
|
|
|
|
|
+func (c *PayCallbackController) Alipay(ctx *gin.Context) {
|
|
|
|
|
+ //
|
|
|
|
|
+ db:=c.apiengine.BusinessOrmEngine[ctx.GetString("domain")]
|
|
|
|
|
+ partial.PayCallback_Alipay(&entitys.CtrlContext{c.apiengine, ctx, db, c.apiengine.PlatformOrmEngine})
|
|
|
|
|
+}
|
|
|
|
|
+
|