feat(home): 首页品牌条文案支持后台配置
This commit is contained in:
@@ -55,6 +55,10 @@ func (s *Service) HomeConfig(ctx context.Context, siteCode string) (*HomeConfigD
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
brandBar, err := s.homeBrandBar(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
config := &HomeConfigDTO{
|
||||
Announcements: announcements,
|
||||
Banners: banners,
|
||||
@@ -62,6 +66,7 @@ func (s *Service) HomeConfig(ctx context.Context, siteCode string) (*HomeConfigD
|
||||
AWRecycle: awRecycle,
|
||||
CooperationFeedback: cooperationFeedback,
|
||||
HomeEntriesEnabled: homeEntriesEnabled,
|
||||
BrandBar: brandBar,
|
||||
}
|
||||
s.applySiteHomeOverrides(ctx, siteCode, config)
|
||||
return config, nil
|
||||
|
||||
Reference in New Issue
Block a user