cash
This commit is contained in:
@@ -59,3 +59,7 @@ func Pay(ctx *jxcontext.Context, orderID, payType int, vendorPayType string) (er
|
|||||||
err = payHandler.CreatePay()
|
err = payHandler.CreatePay()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Cash(ctx *jxcontext.Context, orderID int) (err error) {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|||||||
@@ -25,6 +25,20 @@ func (c *OrderController) Pay() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @Title 提现
|
||||||
|
// @Description 提现
|
||||||
|
// @Param token header string true "认证token"
|
||||||
|
// @Param orderID formData int true "订单号"
|
||||||
|
// @Success 200 {object} controllers.CallResult
|
||||||
|
// @Failure 200 {object} controllers.CallResult
|
||||||
|
// @router /Cash [post]
|
||||||
|
func (c *OrderController) Cash() {
|
||||||
|
c.callCash(func(params *tOrderCashParams) (retVal interface{}, errCode string, err error) {
|
||||||
|
err = cms.Cash(params.Ctx, params.Price)
|
||||||
|
return retVal, "", err
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// @Title 创建订单
|
// @Title 创建订单
|
||||||
// @Description 创建订单
|
// @Description 创建订单
|
||||||
// @Param token header string true "认证token"
|
// @Param token header string true "认证token"
|
||||||
|
|||||||
Reference in New Issue
Block a user