|
@@ -299,15 +299,15 @@ func checkFollowType(followType string) bool {
|
|
|
// @router /followingAnalysts [get]
|
|
|
func (u *UserController) FollowingAnalysts(analystId int) {
|
|
|
controllers.Wrap(&u.BaseController, func() (result *controllers.WrapData, err error) {
|
|
|
- result = u.InitWrapData("获取研究员详情失败")
|
|
|
+ result = u.InitWrapData("获取关注研究员列表失败")
|
|
|
fmt.Println(analystId)
|
|
|
userInfo := u.Data["user"].(user.User)
|
|
|
detail, err := user.GetAnalystDetail(userInfo.Id, analystId)
|
|
|
if err != nil {
|
|
|
- u.FailedResult("获取研究员详情失败", result)
|
|
|
+ u.FailedResult("获取关注研究员列表失败", result)
|
|
|
return
|
|
|
}
|
|
|
- u.SuccessResult("获取研究员详情成功", detail, result)
|
|
|
+ u.SuccessResult("获取关注研究员列表成功", detail, result)
|
|
|
return
|
|
|
})
|
|
|
}
|