Browse Source

增加扣除渠道余额服务

alexzy 3 years ago
parent
commit
18270486e6
1 changed files with 8 additions and 0 deletions
  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;
 }