作者 tangxuhui

数据结构调整

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