|
@@ -74,24 +74,12 @@ public class UserController {
|
|
|
|
|
|
//用户标签配置
|
|
|
@RequestMapping(value = "/userTag/uid/{uid}", method = RequestMethod.GET)
|
|
|
- public APIResult<UserTag> getUserTagsByUid(@PathVariable("uid") String uid) {
|
|
|
+ public APIResult<List<UserTag>> getUserTagsByUid(@PathVariable("uid") String uid) {
|
|
|
List<UserTag> userTags = userTagService.findUserTagByUid(uid);
|
|
|
if (userTags != null && userTags.size() > 0) {
|
|
|
- /*userTags.forEach(userTag -> {
|
|
|
- List<UserTagProductRelation> relationList = userTagProductRelationServiceInterface.findByUserTagId(userTag.getId());
|
|
|
- List<String> productIdList = new ArrayList<>();
|
|
|
- if(null != relationList && relationList.size() > 0){
|
|
|
- relationList.forEach(relation -> {
|
|
|
- productIdList.add(relation.getPid());
|
|
|
- });
|
|
|
- List<ItemVo> itemVoList = productService.findItemByPids(productIdList, merchantId);
|
|
|
- userTag.setRecs(itemVoList);
|
|
|
- }
|
|
|
-
|
|
|
- });*/
|
|
|
return APIResult.ok(userTags);
|
|
|
}else{
|
|
|
- return APIResult.error(APICode.NOT_EXISTS);
|
|
|
+ return APIResult.ok(new ArrayList<>());
|
|
|
}
|
|
|
}
|
|
|
|