Browse Source

修改研究员列表排序

kobe6258 8 months ago
parent
commit
f363dba788
1 changed files with 5 additions and 5 deletions
  1. 5 5
      controllers/user/user_controller.go

+ 5 - 5
controllers/user/user_controller.go

@@ -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
 	})
 }
@@ -342,10 +342,10 @@ func (u *UserController) FollowingAnalystList() {
 		userInfo := u.Data["user"].(user.User)
 		detail, err := user.GetFollowingAnalystList(userInfo.Id)
 		if err != nil {
-			u.FailedResult("获取研究员详情失败", result)
+			u.FailedResult("获取关注研究员列表失败", result)
 			return
 		}
-		u.SuccessResult("获取研究员详情成功", detail, result)
+		u.SuccessResult("获取关注研究员列表成功", detail, result)
 		return
 	})
 }