1
This commit is contained in:
@@ -648,3 +648,15 @@ func (c *DeliveryHandler) GetDeliverLiquidatedDamages(orderId string, deliverId
|
||||
//}
|
||||
//return vendorPrice, nil
|
||||
}
|
||||
|
||||
func (c *DeliveryHandler) GetPlatformBalance() (balance int64, err error) {
|
||||
return api.DadaAPI.QueryBillBalance()
|
||||
}
|
||||
|
||||
func (c *DeliveryHandler) BalanceRecharge(param *utils.RechargeBalance) (url string, err error) {
|
||||
return api.DadaAPI.BalanceRecharge(&dadaapi.RechargeParam{
|
||||
Amount: param.Amount,
|
||||
Category: param.Category,
|
||||
NotifyUrl: param.NotifyUrl,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -608,3 +608,10 @@ func (c *DeliveryHandler) GetWaybillTip(ctx *jxcontext.Context, vendorOrgCode, v
|
||||
}
|
||||
return tipFee, err
|
||||
}
|
||||
|
||||
func (c *DeliveryHandler) GetPlatformBalance() (balance int64, err error) {
|
||||
return api.FnAPI.QueryBillBalance()
|
||||
}
|
||||
func (c *DeliveryHandler) BalanceRecharge(param *utils.RechargeBalance) (url string, err error) {
|
||||
return "", fmt.Errorf("此平台暂不支持充值")
|
||||
}
|
||||
|
||||
@@ -109,3 +109,9 @@ func (c *DeliveryHandler) GetRiderInfo(orderId string, deliveryId int64, mtPeiso
|
||||
func (c *DeliveryHandler) GetDeliverLiquidatedDamages(orderId string, deliverId string) (money int64, err error) {
|
||||
return 0, err
|
||||
}
|
||||
func (c *DeliveryHandler) GetPlatformBalance() (balance int64, err error) {
|
||||
return 0, fmt.Errorf("暂不支持此功能")
|
||||
}
|
||||
func (c *DeliveryHandler) BalanceRecharge(param *utils.RechargeBalance) (url string, err error) {
|
||||
return "", fmt.Errorf("此平台暂不支持充值")
|
||||
}
|
||||
|
||||
@@ -612,3 +612,10 @@ func (c *DeliveryHandler) UpdateWaybillTip(ctx *jxcontext.Context, vendorOrgCode
|
||||
func (c *DeliveryHandler) GetWaybillTip(ctx *jxcontext.Context, vendorOrgCode, vendorStoreID, vendorOrderID, vendorWaybillID, vendorWaybillID2 string) (tipFee int64, err error) {
|
||||
return tipFee, err
|
||||
}
|
||||
|
||||
func (c *DeliveryHandler) GetPlatformBalance() (balance int64, err error) {
|
||||
return 0, fmt.Errorf("暂不支持此功能")
|
||||
}
|
||||
func (c *DeliveryHandler) BalanceRecharge(param *utils.RechargeBalance) (url string, err error) {
|
||||
return "", fmt.Errorf("此平台暂不支持充值")
|
||||
}
|
||||
|
||||
@@ -758,3 +758,10 @@ func getReallyStoreID(storeID, jxStoreID int) int {
|
||||
return storeID
|
||||
}
|
||||
}
|
||||
|
||||
func (c *DeliveryHandler) GetPlatformBalance() (balance int64, err error) {
|
||||
return 0, fmt.Errorf("暂不支持此功能")
|
||||
}
|
||||
func (c *DeliveryHandler) BalanceRecharge(param *utils.RechargeBalance) (url string, err error) {
|
||||
return "", fmt.Errorf("此平台暂不支持充值")
|
||||
}
|
||||
|
||||
@@ -499,3 +499,10 @@ func getReallyStoreID(storeID, jxStoreID int) int {
|
||||
func (c *DeliveryHandler) UpdateStoreName(storeId, name string) (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *DeliveryHandler) GetPlatformBalance() (balance int64, err error) {
|
||||
return 0, fmt.Errorf("暂不支持此功能")
|
||||
}
|
||||
func (c *DeliveryHandler) BalanceRecharge(param *utils.RechargeBalance) (url string, err error) {
|
||||
return "", fmt.Errorf("此平台暂不支持充值")
|
||||
}
|
||||
|
||||
@@ -50,6 +50,10 @@ type IDeliveryPlatformHandler interface {
|
||||
|
||||
// GetDeliverLiquidatedDamages 获取配送单的违约金:京西订单id:orderId,配送方id:deliverId
|
||||
GetDeliverLiquidatedDamages(orderId string, deliverId string) (money int64, err error)
|
||||
// GetPlatformBalance 获取平台账户余额
|
||||
GetPlatformBalance() (balance int64, err error)
|
||||
// BalanceRecharge 充值配送平台
|
||||
BalanceRecharge(param *utils.RechargeBalance) (url string, err error)
|
||||
}
|
||||
|
||||
type IDeliveryUpdateStoreHandler interface {
|
||||
|
||||
Reference in New Issue
Block a user