瀏覽代碼

feat(entity): 添加共享繁荣用户实体积分字段

- 在 SharedProsperityUserEntity 中新增 points 属性
- 实现 getPoints() 方法获取积分值
- 实现 setPoints() 方法设置积分值
- 保持与其他属性一致的数据访问模式
shichen 5 月之前
父節點
當前提交
fc80da6c3c
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      app/entity/data/shared/SharedProsperityUserEntity.php

+ 12 - 0
app/entity/data/shared/SharedProsperityUserEntity.php

@@ -13,6 +13,7 @@ class SharedProsperityUserEntity extends DataEntity
13
     public $consumerStocks = null; // 消费股
13
     public $consumerStocks = null; // 消费股
14
     public $withdrawalLimit = null;  // 提现额度
14
     public $withdrawalLimit = null;  // 提现额度
15
     public $partnerLevel = null;  // 合伙人等级
15
     public $partnerLevel = null;  // 合伙人等级
16
+    public $points = null;
16
     public $createTime = null;  // 创建时间
17
     public $createTime = null;  // 创建时间
17
     public $updateTime = null;  // 更新时间
18
     public $updateTime = null;  // 更新时间
18
 
19
 
@@ -142,6 +143,17 @@ class SharedProsperityUserEntity extends DataEntity
142
         return $this;
143
         return $this;
143
     }
144
     }
144
 
145
 
146
+    public function getPoints()
147
+    {
148
+        return $this->points;
149
+    }
150
+
151
+    public function setPoints($points): SharedProsperityUserEntity
152
+    {
153
+        $this->points = $points;
154
+        return $this;
155
+    }
156
+
145
     /**
157
     /**
146
      * @return mixed
158
      * @return mixed
147
      */
159
      */