feat(benefits): 增加权益中心

This commit is contained in:
yml2213
2026-11-04 20:12:35 +08:00
parent 543086ff07
commit 90b83972ec
9 changed files with 1117 additions and 6 deletions
+17 -6
View File
@@ -17,12 +17,23 @@ var (
)
type SummaryDTO struct {
AvailablePoints int64 `json:"available_points"`
LifetimePoints int64 `json:"lifetime_points"`
LevelCode string `json:"level_code"`
LevelName string `json:"level_name"`
PointsPerYuan int64 `json:"points_per_yuan"`
PointsMultiplierBps int `json:"points_multiplier_bps"`
AvailablePoints int64 `json:"available_points"`
LifetimePoints int64 `json:"lifetime_points"`
LevelCode string `json:"level_code"`
LevelName string `json:"level_name"`
PointsPerYuan int64 `json:"points_per_yuan"`
PointsMultiplierBps int `json:"points_multiplier_bps"`
GrowthEnabled bool `json:"growth_enabled"`
Levels []GrowthLevelDTO `json:"levels"`
}
type GrowthLevelDTO struct {
Code string `json:"code"`
Name string `json:"name"`
MinPoints int64 `json:"min_points"`
PointsMultiplierBps int `json:"points_multiplier_bps"`
DiscountBps int `json:"discount_bps"`
DepositFreeQuotaCent int64 `json:"deposit_free_quota_cent"`
}
type ProductDTO struct {