Merge branch 'test' of http://gitlab.fjmaimaimai.com/allied-creation/allied-crea…
…tion-gateway into test
正在显示
5 个修改的文件
包含
16 行增加
和
10 行删除
| 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 | } |
| @@ -57,7 +57,7 @@ func (dividendsEstimateService *DividendsEstimateService) EstimateMoneyIncentive | @@ -57,7 +57,7 @@ func (dividendsEstimateService *DividendsEstimateService) EstimateMoneyIncentive | ||
| 57 | for i := range result { | 57 | for i := range result { |
| 58 | item := map[string]interface{}{ | 58 | item := map[string]interface{}{ |
| 59 | "userId": result[i].DividendsUser.UserId, | 59 | "userId": result[i].DividendsUser.UserId, |
| 60 | - "userName": result[i].DividendsUser.UserName, | 60 | + "userName": result[i].DividendsUser.UserInfo.UserName, |
| 61 | "dividendsAmount": result[i].DividendsAmount, | 61 | "dividendsAmount": result[i].DividendsAmount, |
| 62 | } | 62 | } |
| 63 | data = append(data, item) | 63 | data = append(data, item) |
| @@ -189,10 +189,14 @@ type ( | @@ -189,10 +189,14 @@ type ( | ||
| 189 | UserBaseId int64 `json:"userBaseId,string"` | 189 | UserBaseId int64 `json:"userBaseId,string"` |
| 190 | // 用户类型 | 190 | // 用户类型 |
| 191 | UserType int32 `json:"userType"` | 191 | UserType int32 `json:"userType"` |
| 192 | - // 用户姓名 | ||
| 193 | - UserName string `json:"userName"` | ||
| 194 | - // 用户手机号 | ||
| 195 | - UserPhone string `json:"userPhone"` | 192 | + UserInfo struct { |
| 193 | + UserAvatar string `json:"userAvatar"` // 用户头像 | ||
| 194 | + UserEmail string `json:"userEmail"` // 用户邮箱 | ||
| 195 | + UserName string `json:"userName"` // 共创人员姓名 | ||
| 196 | + UserPhone string `json:"userPhone"` // 用户手机号 | ||
| 197 | + UserAccount string `json:"userAccount"` // 用户账号,区别于手机号,冗余字段 | ||
| 198 | + UserCode string `json:"userCode"` // 用户编码 | ||
| 199 | + } `json:"userInfo,omitempty"` | ||
| 196 | } `json:"dividendsUser"` | 200 | } `json:"dividendsUser"` |
| 197 | // 分红阶段 | 201 | // 分红阶段 |
| 198 | DividendsStage int32 `json:"dividendsStage"` | 202 | DividendsStage int32 `json:"dividendsStage"` |
| @@ -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"` |
-
请 注册 或 登录 后发表评论