Kaynağa Gözat

feat(shared): 添加分红奖励占比配置字段

- 在SharedProsperityRecommendConfigEntity实体类中新增profitRatio属性
- 添加getProfitRatio()方法获取分红奖励占比
- 添加setProfitRatio()方法设置分红奖励占比
- 为getConfigList()方法添加详细的PHPDoc注释文档
shichen 6 ay önce
ebeveyn
işleme
ca3651fc6b

+ 6 - 0
app/common/dao/shared/SharedProsperityRecommendConfigDao.php

@@ -13,6 +13,12 @@ class SharedProsperityRecommendConfigDao extends BaseDao
13 13
         return SharedProsperityRecommendConfig::class;
14 14
     }
15 15
 
16
+    /**
17
+     * @return array
18
+     * @author 史晨
19
+     * @date 2026/2/5 14:43
20
+     * 获取推荐配置
21
+     */
16 22
     public function getConfigList(): array
17 23
     {
18 24
         $entityList = [];

+ 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 $profitRatio = null;  // 分红奖励占比
13 14
     public $pv = null;  // 业绩
14 15
     public $createTime = null;  // 创建时间
15 16
     public $updateTime = null;  // 更新时间
@@ -76,6 +77,11 @@ class SharedProsperityRecommendConfigEntity extends DataEntity
76 77
         return $this->rewardRatio;
77 78
     }
78 79
 
80
+    public function getProfitRatio()
81
+    {
82
+        return $this->profitRatio;
83
+    }
84
+
79 85
     /**
80 86
      * @param mixed $rewardRatio
81 87
      * @return SharedProsperityRecommendConfigEntity
@@ -87,6 +93,16 @@ class SharedProsperityRecommendConfigEntity extends DataEntity
87 93
     }
88 94
 
89 95
     /**
96
+     * @param mixed $profitRatio
97
+     * @return SharedProsperityRecommendConfigEntity
98
+     */
99
+    public function setProfitRatio($profitRatio): SharedProsperityRecommendConfigEntity
100
+    {
101
+        $this->profitRatio = $profitRatio;
102
+        return $this;
103
+    }
104
+
105
+    /**
90 106
      * @return mixed
91 107
      */
92 108
     public function getPv()