This commit is contained in:
苏尹岚
2020-10-20 09:26:26 +08:00
parent 5f59b7bdd9
commit adf90f21e0
2 changed files with 18 additions and 0 deletions

View File

@@ -59,3 +59,7 @@ func Pay(ctx *jxcontext.Context, orderID, payType int, vendorPayType string) (er
err = payHandler.CreatePay()
return err
}
func Cash(ctx *jxcontext.Context, orderID int) (err error) {
return err
}

View File

@@ -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 创建订单
// @Description 创建订单
// @Param token header string true "认证token"