|
@@ -48,23 +48,49 @@ type CooperationProjectInfo struct { |
|
@@ -48,23 +48,49 @@ type CooperationProjectInfo struct { |
|
48
|
DepartmentName string `json:"departmentName"`
|
48
|
DepartmentName string `json:"departmentName"`
|
|
49
|
} `json:"department"` //项目发起部门
|
49
|
} `json:"department"` //项目发起部门
|
|
50
|
Status int `json:"status"` // 共创项目状态,1招标中,2结束
|
50
|
Status int `json:"status"` // 共创项目状态,1招标中,2结束
|
|
|
|
51
|
+ // 可以去除勾选的共创项目承接对象列表
|
|
|
|
52
|
+ UndertakerTypesUncheckedAvailable []int `json:"undertakerTypesUncheckedAvailable"`
|
|
|
|
53
|
+ // 承接人
|
|
|
|
54
|
+ Applicants []struct {
|
|
|
|
55
|
+ UserId int64 `json:"userId,string"`
|
|
|
|
56
|
+ UserBaseId int64 `json:"userBaseId,string"` // 用户基本id
|
|
|
|
57
|
+ Org struct {
|
|
|
|
58
|
+ OrgId int64 `json:"orgId,string"` // 组织机构ID
|
|
|
|
59
|
+ OrgName string `json:"orgName"` // 组织名称
|
|
|
|
60
|
+ } `json:"org"` // 用户所属组织机构
|
|
|
|
61
|
+ Department struct {
|
|
|
|
62
|
+ DepartmentId int64 `json:"departmentId,string"` // 部门ID,
|
|
|
|
63
|
+ DepartmentName string `json:"departmentName"` // 部门名称
|
|
|
|
64
|
+ DepartmentNumber string `json:"departmentNumber"` // 部门编码
|
|
|
|
65
|
+ } `json:"department"` // 用户所属的部门
|
|
|
|
66
|
+ UserInfo struct {
|
|
|
|
67
|
+ UserAvatar string `json:"userAvatar"` // 用户头像
|
|
|
|
68
|
+ UserEmail string `json:"userEmail"` // 用户邮箱
|
|
|
|
69
|
+ UserName string `json:"userName"` // 共创人员姓名
|
|
|
|
70
|
+ UserPhone string `json:"userPhone"` // 用户手机号
|
|
|
|
71
|
+ UserAccount string `json:"userAccount"` // 用户账号,
|
|
|
|
72
|
+ UserCode string `json:"userCode"` // 用户编码
|
|
|
|
73
|
+ } `json:"userInfo,omitempty"`
|
|
|
|
74
|
+ } `json:"applicants"`
|
|
51
|
}
|
75
|
}
|
|
52
|
|
76
|
|
|
53
|
func ToCooperationProjectInfo(param *allied_creation_cooperation.CooperationProject) *CooperationProjectInfo {
|
77
|
func ToCooperationProjectInfo(param *allied_creation_cooperation.CooperationProject) *CooperationProjectInfo {
|
|
54
|
data := CooperationProjectInfo{
|
78
|
data := CooperationProjectInfo{
|
|
55
|
- Company: param.Company,
|
|
|
|
56
|
- Org: param.Org,
|
|
|
|
57
|
- CooperationMode: param.CooperationMode,
|
|
|
|
58
|
- CooperationProjectDescription: param.CooperationProjectDescription,
|
|
|
|
59
|
- CooperationProjectId: param.CooperationProjectId,
|
|
|
|
60
|
- CooperationProjectName: param.CooperationProjectName,
|
|
|
|
61
|
- CooperationProjectNumber: param.CooperationProjectNumber,
|
|
|
|
62
|
- CooperationProjectPublishTime: param.CooperationProjectPublishTime,
|
|
|
|
63
|
- CreatedAt: param.CreatedAt,
|
|
|
|
64
|
- CooperationProjectUndertakerType: param.CooperationProjectUndertakerType,
|
|
|
|
65
|
- Department: param.Department,
|
|
|
|
66
|
- Status: param.Status,
|
|
|
|
67
|
- Images: param.Attachment,
|
79
|
+ Company: param.Company,
|
|
|
|
80
|
+ Org: param.Org,
|
|
|
|
81
|
+ CooperationMode: param.CooperationMode,
|
|
|
|
82
|
+ CooperationProjectDescription: param.CooperationProjectDescription,
|
|
|
|
83
|
+ CooperationProjectId: param.CooperationProjectId,
|
|
|
|
84
|
+ CooperationProjectName: param.CooperationProjectName,
|
|
|
|
85
|
+ CooperationProjectNumber: param.CooperationProjectNumber,
|
|
|
|
86
|
+ CooperationProjectPublishTime: param.CooperationProjectPublishTime,
|
|
|
|
87
|
+ CreatedAt: param.CreatedAt,
|
|
|
|
88
|
+ CooperationProjectUndertakerType: param.CooperationProjectUndertakerType,
|
|
|
|
89
|
+ Department: param.Department,
|
|
|
|
90
|
+ Status: param.Status,
|
|
|
|
91
|
+ Images: param.Attachment,
|
|
|
|
92
|
+ UndertakerTypesUncheckedAvailable: param.UndertakerTypesUncheckedAvailable,
|
|
|
|
93
|
+ Applicants: param.Applicants,
|
|
68
|
}
|
94
|
}
|
|
69
|
|
95
|
|
|
70
|
data.CooperationProjectSponsor.UsersCode = param.CooperationProjectSponsor.UserInfo.UsersCode
|
96
|
data.CooperationProjectSponsor.UsersCode = param.CooperationProjectSponsor.UserInfo.UsersCode
|