ソースを参照

feat(entity): 添加分享奖励占比字段到共享繁荣推荐配置实体

- 在 SharedProsperityRecommendConfigEntity 中新增 shareRatio 属性
- 实现 getShareRatio 方法用于获取分享奖励占比
- 实现 setShareRatio 方法用于设置分享奖励占比
- 为 setShareRatio 方法添加参数类型约束和返回值注释
shichen 2 ヶ月 前
コミット
294dfd8476
共有1 個のファイルを変更した16 個の追加0 個の削除を含む
  1. 16 0
      app/entity/data/shared/SharedProsperityRecommendConfigEntity.php

+ 16 - 0
app/entity/data/shared/SharedProsperityRecommendConfigEntity.php

@@ -10,6 +10,7 @@ class SharedProsperityRecommendConfigEntity extends DataEntity
10 10
     public $level = null;  // 等级
11 11
     public $name = null;  // 描述
12 12
     public $rewardRatio = null;  // 推荐奖励占比
13
+    public $shareRatio = null;  // 分享奖励占比
13 14
     public $profitRatio = null;  // 分红奖励占比
14 15
     public $pv = null;  // 业绩
15 16
     public $consume = null;  // 业绩
@@ -174,4 +175,19 @@ class SharedProsperityRecommendConfigEntity extends DataEntity
174 175
         $this->updateTime = $updateTime;
175 176
         return $this;
176 177
     }
178
+
179
+    public function getShareRatio()
180
+    {
181
+        return $this->shareRatio;
182
+    }
183
+
184
+    /**
185
+     * @param mixed $updateTime
186
+     * @return SharedProsperityRecommendConfigEntity
187
+     */
188
+    public function setShareRatio($shareRatio): SharedProsperityRecommendConfigEntity
189
+    {
190
+        $this->shareRatio = $shareRatio;
191
+        return $this;
192
+    }
177 193
 }