Pārlūkot izejas kodu

增加头像原始url

kobe6258 6 dienas atpakaļ
vecāks
revīzija
de68068dbe

+ 2 - 0
domian/financial_analyst/financial_analyst_service.go

@@ -14,6 +14,7 @@ type FinancialAnalystDTO struct {
 	InvestmentCertificate   string
 	ProfessionalCertificate string
 	HeadImgUrl              string
+	HeadOriginImgUrl        string
 	Introduction            string
 	Status                  bool
 	Deleted                 bool
@@ -77,6 +78,7 @@ func convertToBaseDTO(financialAnalyst financialAnalystDao.CrmFinancialAnalyst)
 		Id:                      financialAnalyst.Id,
 		ETAId:                   financialAnalyst.ETAId,
 		HeadImgUrl:              financialAnalyst.HeadImgURL,
+		HeadOriginImgUrl:        financialAnalyst.HeadOriginImgUrl,
 		Name:                    financialAnalyst.Name,
 		Introduction:            financialAnalyst.Introduction,
 		ProfessionalCertificate: financialAnalyst.ProfessionalCertificate,

+ 2 - 1
models/financial_analyst/financial_analyst.go

@@ -14,7 +14,7 @@ type AnalystStatus string
 const (
 	AnalystStatusEnabled  AnalystStatus = "enabled"
 	AnalystStatusDisabled AnalystStatus = "disabled"
-	columns                             = "id,eta_id,name,head_img_url,introduction,position,investment_certificate,professional_certificate"
+	columns                             = "id,eta_id,name,head_img_url,head_origin_img_url,introduction,position,investment_certificate,professional_certificate"
 )
 
 type CrmFinancialAnalyst struct {
@@ -23,6 +23,7 @@ type CrmFinancialAnalyst struct {
 	HTId                    int           `gorm:"column:ht_id"`
 	Name                    string        `gorm:"column:name"`
 	HeadImgURL              string        `gorm:"column:head_img_url"`
+	HeadOriginImgUrl        string        `gorm:"column:head_origin_img_url"`
 	Position                string        `gorm:"column:position"`
 	InvestmentCertificate   string        `gorm:"column:investment_certificate"`
 	ProfessionalCertificate string        `gorm:"column:professional_certificate"`

+ 2 - 0
service/user/user_service.go

@@ -43,6 +43,7 @@ type User struct {
 type AnalystDetail struct {
 	AnalystName             string `json:"analystName"`
 	HeadImgUrl              string `json:"headImgUrl"`
+	HeadOriginImgUrl        string `json:"headOriginImgUrl"`
 	Introduction            string `json:"introduction"`
 	Followed                string `json:"followed"`
 	Position                string `json:"position"`
@@ -244,6 +245,7 @@ func convertToAnalystDetail(dto analystService.FinancialAnalystDTO) AnalystDetai
 	return AnalystDetail{
 		AnalystName:             dto.Name,
 		HeadImgUrl:              dto.HeadImgUrl,
+		HeadOriginImgUrl:        dto.HeadOriginImgUrl,
 		Introduction:            dto.Introduction,
 		Position:                dto.Position,
 		InvestmentCertificate:   dto.InvestmentCertificate,