Eric0718 2 سال پیش
والد
کامیت
21adf09bb8
1فایلهای تغییر یافته به همراه31 افزوده شده و 2 حذف شده
  1. 31 2
      models/tables.go

+ 31 - 2
models/tables.go

@@ -10,14 +10,43 @@ type UserInfo struct {
 	Id               int64
 	Addr             string
 	Direct           int     //我的上级
+	DirectNumber     int     //直推总人数
+	IndirectRewards  float64 `xorm:"Decimal"`
 	Indirect         int     //上上级
+	IndirectNumber   int     //间推总人数
+	DirectRewards    float64 `xorm:"Decimal"`
 	TeamMembers      string  //团队(上级)
 	AvailableClaim   float64 `xorm:"Decimal"` //可领取收益
 	TotalClaimed     float64 `xorm:"Decimal"` //总共已领取的收益
 	AvailableReinput float64 `xorm:"Decimal"` //可用复投
 	TotalReinputed   float64 `xorm:"Decimal"` //总复投
-	State            int     //身份   0 1正式   2  社区
-	OpTime           string
+
+	State  int //身份   0 1正式   2  社区
+	OpTime string
+}
+
+// TeamCultivate float64 `xorm:"Decimal"`
+// 	CommunityGift float64 `xorm:"Decimal"`
+// 	CommunityNode float64 `xorm:"Decimal"`
+
+type Performance struct {
+	Id                 int64
+	Addr               string
+	TotalPerformance   float64 `xorm:"Decimal"`
+	PerformanceLevel   int
+	PerformanceRewards float64 `xorm:"Decimal"`
+
+	TotalTeamCultivate   float64 `xorm:"Decimal"`
+	TeamCultivateLevel   int
+	TeamCultivateRewards float64 `xorm:"Decimal"`
+
+	CommunityGift float64 `xorm:"Decimal"`
+	CommunityNode float64 `xorm:"Decimal"`
+}
+
+type BlockInfo struct {
+	Id          int64
+	BlockNumber int64
 }
 
 type UserTxs struct {