diff --git a/business/jxstore/cms/order.go b/business/jxstore/cms/order.go index 1d28b9564..44dc7ef9c 100644 --- a/business/jxstore/cms/order.go +++ b/business/jxstore/cms/order.go @@ -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 +} diff --git a/controllers/order_controller.go b/controllers/order_controller.go index cb136c6d9..d5d4d6bdb 100644 --- a/controllers/order_controller.go +++ b/controllers/order_controller.go @@ -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"