|
@@ -34,10 +34,13 @@ type User struct {
|
|
|
}
|
|
|
|
|
|
type AnalystDetail struct {
|
|
|
- AnalystName string `json:"AnalystName"`
|
|
|
- HeadImgUrl string `json:"HeadImgUrl"`
|
|
|
- Introduction string `json:"Introduction"`
|
|
|
- Followed string `json:"Followed"`
|
|
|
+ AnalystName string `json:"analystName"`
|
|
|
+ HeadImgUrl string `json:"headImgUrl"`
|
|
|
+ Introduction string `json:"introduction"`
|
|
|
+ Followed string `json:"followed"`
|
|
|
+ Position string `json:"position"`
|
|
|
+ InvestmentCertificate string `json:"investmentCertificate"`
|
|
|
+ ProfessionalCertificate string `json:"professionalCertificate"`
|
|
|
}
|
|
|
|
|
|
type UserProfile struct {
|
|
@@ -232,9 +235,12 @@ func GetAnalystDetail(userId int, analystId int) (analystDetail AnalystDetail, e
|
|
|
|
|
|
func convertToAnalystDetail(dto analystService.FinancialAnalystDTO) AnalystDetail {
|
|
|
return AnalystDetail{
|
|
|
- AnalystName: dto.Name,
|
|
|
- HeadImgUrl: dto.HeadImgUrl,
|
|
|
- Introduction: dto.Introduction,
|
|
|
+ AnalystName: dto.Name,
|
|
|
+ HeadImgUrl: dto.HeadImgUrl,
|
|
|
+ Introduction: dto.Introduction,
|
|
|
+ Position: dto.Position,
|
|
|
+ InvestmentCertificate: dto.InvestmentCertificate,
|
|
|
+ ProfessionalCertificate: dto.ProfessionalCertificate,
|
|
|
}
|
|
|
|
|
|
}
|