|
@@ -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{
|