|
@@ -95,9 +95,12 @@ func FollowAnalyst(userId int, analystId int, followType string) (err error) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
func GetFollowingAnalystList(userId int) (analysts []FollowAnalystDTO, err error) {
|
|
func GetFollowingAnalystList(userId int) (analysts []FollowAnalystDTO, err error) {
|
|
|
|
+ logger.Info("用户ID:%d", userId)
|
|
dtoList, err := userService.GetFollowingAnalystList(userId)
|
|
dtoList, err := userService.GetFollowingAnalystList(userId)
|
|
if err != nil {
|
|
if err != nil {
|
|
|
|
+ logger.Error("获取关注列表失败:%v", err)
|
|
err = exception.New(exception.GetFollowingAnalystListFailed)
|
|
err = exception.New(exception.GetFollowingAnalystListFailed)
|
|
|
|
+ return
|
|
}
|
|
}
|
|
analysts, err = convertToAnalystList(dtoList)
|
|
analysts, err = convertToAnalystList(dtoList)
|
|
var wg sync.WaitGroup
|
|
var wg sync.WaitGroup
|
|
@@ -126,10 +129,10 @@ func GetFollowingAnalystList(userId int) (analysts []FollowAnalystDTO, err error
|
|
// NeedNotice 为 true 的排在 false 的前面
|
|
// NeedNotice 为 true 的排在 false 的前面
|
|
return analysts[i].NeedNotice
|
|
return analysts[i].NeedNotice
|
|
})
|
|
})
|
|
- if err != nil {
|
|
|
|
- logger.Error("转换研究员列表失败:%v", err)
|
|
|
|
- err = exception.New(exception.TransferFollowingAnalystListFailed)
|
|
|
|
- }
|
|
|
|
|
|
+ //if err != nil {
|
|
|
|
+ // logger.Error("转换研究员列表失败:%v", err)
|
|
|
|
+ // err = exception.New(exception.TransferFollowingAnalystListFailed)
|
|
|
|
+ //}
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|