作者 tangxuhui

数据结构微调

package service
import (
"time"
"github.com/GeeTeam/gt3-golang-sdk/geetest"
"github.com/google/uuid"
"github.com/linmadan/egglib-go/utils/json"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/auth/dto"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/auth/query"
"time"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/log"
... ... @@ -514,7 +515,7 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error
"company": map[string]interface{}{
"companyId": resultUser.Company.CompanyId,
"companyName": resultUser.Company.CompanyName,
"logo": resultUser.Company.Log,
"logo": resultUser.Company.Logo,
"systemName": resultUser.Company.SystemName,
"address": resultUser.Company.Address,
},
... ...
package service
import (
"time"
"github.com/linmadan/egglib-go/core/application"
"github.com/linmadan/egglib-go/utils/json"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/command"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/allied_creation_cooperation"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/allied_creation_user"
"time"
)
// 个人端统计 【0%】
... ... @@ -144,7 +145,7 @@ func (srv PersonStatisticsService) CompanyStatistics(cmd *command.CooperationPer
cooperationCompanyStatisticsResponses[i].Company = domain.CompanyData{
CompanyID: user.Org.OrgId,
CompanyName: user.Org.OrgName,
CompanyLogo: user.Company.Log,
CompanyLogo: user.Company.Logo,
}
values = append(values, cooperationCompanyStatisticsResponses[i])
}
... ...
... ... @@ -31,7 +31,7 @@ type UserDetail struct {
IndustryCategory string `json:"industryCategory"`
RegisteredTime time.Time `json:"registeredTime"`
Status int64 `json:"status"`
Log string `json:"logo"`
Logo string `json:"logo"`
Address string `json:"address"`
SystemName string `json:"systemName"`
} `json:"company,omitempty"`
... ...