cash
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user