Browse Source

增加获取用户充值折扣服务

alexzy 2 years ago
parent
commit
119a610e69
1 changed files with 19 additions and 0 deletions
  1. 19 0
      src/app/RechargeOrderServiceInterface.php

+ 19 - 0
src/app/RechargeOrderServiceInterface.php

@@ -0,0 +1,19 @@
+<?php
+
+interface RechargeOrderServiceInterface
+{
+    /**
+     * 获取用户充值折扣
+     * @param int $user_id 青菜用户ID
+     * @param int $platform_game_id 平台游戏ID
+     * @param string $game_account 游戏账号
+     * @param int $recharge_amount 充值金额
+     * @param bool|int $is_first_recharge 是否首充 1 首充 0 续充
+     * @return array
+     * 最终用户充值折扣 discount
+     * 首充成本(阶梯)first_cost
+     * 是否首充 is_first_recharge
+     */
+    public function getDiscount(int $user_id, int $platform_game_id, string $game_account, int $recharge_amount, $is_first_recharge = false): array;
+
+}