Parcourir la source

增加扣除渠道余额服务

alexzy il y a 3 ans
Parent
commit
18270486e6
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      src/PromoteServiceInterface.php

+ 8 - 0
src/PromoteServiceInterface.php

@@ -20,4 +20,12 @@ interface PromoteServiceInterface
      * @return array
      */
     public function listByIds(array $ids, array $field = ['*']): array;
+
+    /**
+     * 根据渠道ID扣除余额
+     * @param $promote_id
+     * @param $price
+     * @return int
+     */
+    public function decBalanceById($promote_id, $price): int;
 }