Showing
1 changed file
with
22 additions
and
0 deletions
1 | +package com.yoho.search.common.config; | ||
2 | + | ||
3 | +import com.yoho.core.config.ConfigReader; | ||
4 | +import org.springframework.beans.factory.annotation.Autowired; | ||
5 | +import org.springframework.stereotype.Component; | ||
6 | + | ||
7 | +/** | ||
8 | + * 搜索降级配置 | ||
9 | + */ | ||
10 | +@Component | ||
11 | +public class SearchDegradeConfig { | ||
12 | + | ||
13 | + @Autowired | ||
14 | + private ConfigReader configReader; | ||
15 | + | ||
16 | + // 首页猜你喜欢列表是否降级 | ||
17 | + public boolean downGradeFirstPageGuessLike(){ | ||
18 | + return configReader.getBoolean("search.degrade.firstPageGuessLike.open", false); | ||
19 | + } | ||
20 | + | ||
21 | + | ||
22 | +} |
-
Please register or login to post a comment