作者 yangfu

公司图标修改

... ... @@ -139,7 +139,7 @@ func (srv PersonStatisticsService) CompanyStatistics(cmd *command.CooperationPer
// 分红支出
DividendsIncome float64 `json:"dividendsIncome"`
// 企业信息
Company domain.CompanyData `json:"company"`
Company domain.Company `json:"company"`
}
var cooperationCompanyStatisticsResponses []cooperationCompanyStatisticsResponse
if err := json.UnmarshalFromString(json.MarshalToString(result), &cooperationCompanyStatisticsResponses); err != nil {
... ... @@ -152,10 +152,10 @@ func (srv PersonStatisticsService) CompanyStatistics(cmd *command.CooperationPer
var values = make([]interface{}, 0)
for i := range users.Users {
user := users.Users[i]
cooperationCompanyStatisticsResponses[i].Company = domain.CompanyData{
cooperationCompanyStatisticsResponses[i].Company = domain.Company{
CompanyID: user.Org.OrgId,
CompanyName: user.Org.OrgName,
CompanyLogo: user.Company.Logo,
Logo: user.Company.Logo,
}
values = append(values, cooperationCompanyStatisticsResponses[i])
}
... ...
... ... @@ -6,3 +6,9 @@ type CompanyData struct {
CompanyLogo string `json:"companyLogo"`
CompanyName string `json:"companyName"`
}
type Company struct {
CompanyID int `json:"companyId"`
Logo string `json:"logo"`
CompanyName string `json:"companyName"`
}
... ...