feat(user): 支持后台调整等级并限制极品专区可见性
This commit is contained in:
@@ -34,7 +34,11 @@ func (r *Repository) Summary(ctx context.Context, userID uint64) (*SummaryDTO, e
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
level := rentergrowth.LevelForPoints(cfg, user.RenterGrowthPoints)
|
||||
level := rentergrowth.EffectiveLevelForUser(
|
||||
cfg,
|
||||
user.RenterGrowthPoints,
|
||||
user.RenterGrowthLevelOverride,
|
||||
)
|
||||
levels := make([]GrowthLevelDTO, 0, len(cfg.Levels))
|
||||
for _, item := range cfg.Levels {
|
||||
levels = append(levels, GrowthLevelDTO{
|
||||
|
||||
Reference in New Issue
Block a user