作者 tangxuhui

数据结构微调

1 package service 1 package service
2 2
3 import ( 3 import (
  4 + "time"
  5 +
4 "github.com/GeeTeam/gt3-golang-sdk/geetest" 6 "github.com/GeeTeam/gt3-golang-sdk/geetest"
5 "github.com/google/uuid" 7 "github.com/google/uuid"
6 "github.com/linmadan/egglib-go/utils/json" 8 "github.com/linmadan/egglib-go/utils/json"
7 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/auth/dto" 9 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/auth/dto"
8 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/auth/query" 10 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/auth/query"
9 - "time"  
10 11
11 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/log" 12 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/log"
12 13
@@ -514,7 +515,7 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error @@ -514,7 +515,7 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error
514 "company": map[string]interface{}{ 515 "company": map[string]interface{}{
515 "companyId": resultUser.Company.CompanyId, 516 "companyId": resultUser.Company.CompanyId,
516 "companyName": resultUser.Company.CompanyName, 517 "companyName": resultUser.Company.CompanyName,
517 - "logo": resultUser.Company.Log, 518 + "logo": resultUser.Company.Logo,
518 "systemName": resultUser.Company.SystemName, 519 "systemName": resultUser.Company.SystemName,
519 "address": resultUser.Company.Address, 520 "address": resultUser.Company.Address,
520 }, 521 },
1 package service 1 package service
2 2
3 import ( 3 import (
  4 + "time"
  5 +
4 "github.com/linmadan/egglib-go/core/application" 6 "github.com/linmadan/egglib-go/core/application"
5 "github.com/linmadan/egglib-go/utils/json" 7 "github.com/linmadan/egglib-go/utils/json"
6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/command" 8 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/command"
7 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain" 9 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain"
8 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/allied_creation_cooperation" 10 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/allied_creation_cooperation"
9 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/allied_creation_user" 11 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/allied_creation_user"
10 - "time"  
11 ) 12 )
12 13
13 // 个人端统计 【0%】 14 // 个人端统计 【0%】
@@ -144,7 +145,7 @@ func (srv PersonStatisticsService) CompanyStatistics(cmd *command.CooperationPer @@ -144,7 +145,7 @@ func (srv PersonStatisticsService) CompanyStatistics(cmd *command.CooperationPer
144 cooperationCompanyStatisticsResponses[i].Company = domain.CompanyData{ 145 cooperationCompanyStatisticsResponses[i].Company = domain.CompanyData{
145 CompanyID: user.Org.OrgId, 146 CompanyID: user.Org.OrgId,
146 CompanyName: user.Org.OrgName, 147 CompanyName: user.Org.OrgName,
147 - CompanyLogo: user.Company.Log, 148 + CompanyLogo: user.Company.Logo,
148 } 149 }
149 values = append(values, cooperationCompanyStatisticsResponses[i]) 150 values = append(values, cooperationCompanyStatisticsResponses[i])
150 } 151 }
@@ -31,7 +31,7 @@ type UserDetail struct { @@ -31,7 +31,7 @@ type UserDetail struct {
31 IndustryCategory string `json:"industryCategory"` 31 IndustryCategory string `json:"industryCategory"`
32 RegisteredTime time.Time `json:"registeredTime"` 32 RegisteredTime time.Time `json:"registeredTime"`
33 Status int64 `json:"status"` 33 Status int64 `json:"status"`
34 - Log string `json:"logo"` 34 + Logo string `json:"logo"`
35 Address string `json:"address"` 35 Address string `json:"address"`
36 SystemName string `json:"systemName"` 36 SystemName string `json:"systemName"`
37 } `json:"company,omitempty"` 37 } `json:"company,omitempty"`