作者 tangxuhui

数据结构调整

@@ -122,9 +122,10 @@ func ToCooperationContractInfo(param *allied_creation_cooperation.CooperationCon @@ -122,9 +122,10 @@ func ToCooperationContractInfo(param *allied_creation_cooperation.CooperationCon
122 r := Relevant{ 122 r := Relevant{
123 UserId: int(v.UserId), 123 UserId: int(v.UserId),
124 UserInfo: domain.UserInfo{ 124 UserInfo: domain.UserInfo{
125 - UsersName: v.UserInfo.UsersName,  
126 - UsersId: v.UserInfo.UsersId, 125 + UsersName: v.UserInfo.UserName,
  126 + UsersId: int(v.UserId),
127 UserCode: v.UserInfo.UserCode, 127 UserCode: v.UserInfo.UserCode,
  128 + Phone: v.UserInfo.UserPhone,
128 }, 129 },
129 Department: domain.Department{ 130 Department: domain.Department{
130 DepartmentNumber: v.Department.DepartmentNumber, 131 DepartmentNumber: v.Department.DepartmentNumber,
@@ -113,7 +113,14 @@ type CooperationContract struct { @@ -113,7 +113,14 @@ type CooperationContract struct {
113 OrgId int64 `json:"orgId,string,"` // 组织机构ID 113 OrgId int64 `json:"orgId,string,"` // 组织机构ID
114 OrgName string `json:"orgName"` // 组织名称 114 OrgName string `json:"orgName"` // 组织名称
115 } `json:"org"` 115 } `json:"org"`
116 - UserInfo domain.UserInfo `json:"userInfo"` 116 + UserInfo struct {
  117 + UserAvatar string `json:"userAvatar"`
  118 + UserEmail string `json:"userEmail"`
  119 + UserName string `json:"userName"`
  120 + UserPhone string `json:"userPhone"`
  121 + UserAccount string `json:"userAccount"`
  122 + UserCode string `json:"userCode"`
  123 + } `json:"userInfo"`
117 Department struct { 124 Department struct {
118 DepartmentId int64 `json:"departmentId,string,"` // 部门ID 125 DepartmentId int64 `json:"departmentId,string,"` // 部门ID
119 DepartmentName string `json:"departmentName"` // 部门名称 126 DepartmentName string `json:"departmentName"` // 部门名称