This commit is contained in:
苏尹岚
2020-10-20 11:51:42 +08:00
parent a765af69ee
commit 29946b79d9
6 changed files with 75 additions and 15 deletions

View File

@@ -29,12 +29,14 @@ func (c *OrderController) Pay() {
// @Description 提现
// @Param token header string true "认证token"
// @Param orderID formData int true "订单号"
// @Param payType formData int true "支付平台类型"
// @Param vendorPayType formData string 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)
err = cms.Cash(params.Ctx, params.OrderID, params.PayType, params.VendorPayType)
return retVal, "", err
})
}