add pay
This commit is contained in:
@@ -20,12 +20,13 @@ type OrderController struct {
|
||||
// @Param vendorPayType formData string true "平台支付类型"
|
||||
// @Param orderType formData string true "订单类型member(会员),express快递,recharge充值"
|
||||
// @Param appId formData string true "appId"
|
||||
// @Param isChoose formData int true "-1:未选中余额抵消 1:余额抵消"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /Pay [post]
|
||||
func (c *OrderController) Pay() {
|
||||
c.callPay(func(params *tOrderPayParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = cms.Pay(params.Ctx, params.OrderID, params.PayType, params.VendorPayType, params.AppId)
|
||||
retVal, err = cms.Pay(params.Ctx, params.OrderID, params.PayType, params.VendorPayType, params.AppId, params.IsChoose)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
@@ -38,13 +39,13 @@ func (c *OrderController) Pay() {
|
||||
// @Param vendorPayType formData string true "平台支付类型"
|
||||
// @Param orderType formData string true "订单类型member(会员),express快递,recharge充值"
|
||||
// @Param appId formData string true "appId"
|
||||
// @Param restPrice formData int true "需要微信支付的价格"
|
||||
// @Param isChoose formData int true "-1:未选中余额抵消 1:余额抵消"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /PayByBalance [post]
|
||||
func (c *OrderController) PayByBalance() {
|
||||
c.callPayByBalance(func(params *tOrderPayByBalanceParams) (retVal interface{}, errMsg string, err error) {
|
||||
retVal, _, err = cms.PayByBalance(params.Ctx, params.OrderID, params.RestPrice, params.PayType, params.VendorPayType, params.AppId)
|
||||
retVal, _, err = cms.PayByBalance(params.Ctx, params.OrderID, params.IsChoose, params.PayType, params.VendorPayType, params.AppId)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ func (c *QBiDaExpressController) CreateWayOrder() {
|
||||
})
|
||||
}
|
||||
|
||||
// CancelWayVendorOrder 取消运单
|
||||
// pay 取消运单
|
||||
// @Title Q必达
|
||||
// @Description 取消运单
|
||||
// @Param token header string true "管理员token"
|
||||
|
||||
Reference in New Issue
Block a user