Class RecommendServiceImpl
java.lang.Object
io.github.seenings.calc.service.impl.RecommendServiceImpl
- All Implemented Interfaces:
RecommendService
RecommendServiceImpl
- Since:
- 2023-05-21
- Author:
- chixuehui
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRecommendUser(Long userId) mandatoryRecommendUser(Sex recommendSex, int current, int size) 硬性条件softRecommendUser(Long userId, List<Long> userIds, Integer currentCityId) 软性条件
-
Constructor Details
-
RecommendServiceImpl
public RecommendServiceImpl()
-
-
Method Details
-
mandatoryRecommendUser
硬性条件- Specified by:
mandatoryRecommendUserin interfaceRecommendService- Parameters:
recommendSex- 推荐的性别current- 当前页size- 大小- Returns:
- 被推荐的用户
-
softRecommendUser
软性条件- Specified by:
softRecommendUserin interfaceRecommendService- Parameters:
userId- 用户IDuserIds- 被推荐的用户IDcurrentCityId- 用户当前城市- Returns:
- 被推荐的用户
-
createRecommendUser
- Specified by:
createRecommendUserin interfaceRecommendService
-