Sfoglia il codice sorgente

研究员获取列表新增禁止状态

kobe6258 4 settimane fa
parent
commit
6b85ca624d

+ 4 - 4
domian/report/report_service.go

@@ -120,15 +120,15 @@ func GetReportById(reportId int, userId int) (ReportDTO ReportDTO, err error) {
 	var authorList []Anthor
 	if len(authorNames) > 0 {
 		for _, name := range authorNames {
-			var author analystService.FinancialAnalystDTO
-			author, err = analystService.GetAnalystByName(name)
+			//var author analystService.FinancialAnalystDTO
+			author, authorErr := analystService.GetAnalystByName(name)
 			var item Anthor
-			if err != nil {
+			if authorErr != nil {
 				item = Anthor{
 					Id:         0,
 					Name:       name,
 					HeadImgUrl: "",
-					Following:  string(userDao.Unfollowed),
+					Following:  string(userDao.Forbidden),
 				}
 			} else {
 				item = Anthor{

BIN
eta_mini_ht_api


+ 4 - 2
models/user/user_analyst_follow_list.go

@@ -11,8 +11,10 @@ import (
 type FollowingType string
 
 const (
-	Following   FollowingType = "following"
-	Unfollowed  FollowingType = "unfollowed"
+	Following  FollowingType = "following"
+	Unfollowed FollowingType = "unfollowed"
+
+	Forbidden   FollowingType = "forbidden"
 	listColumns               = "user_id, financial_analyst_id,financial_analyst_name, followed,followed_time"
 
 	FollowingStatusColumns = "financial_analyst_id,financial_analyst_name, followed"