param_cooperation_project.go
6.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
package allied_creation_cooperation
//创建共创项目
type (
ReqCooperationProjectAdd struct {
CooperationProjectDescription string `json:"cooperationProjectDescription"`
CooperationProjectName string `json:"cooperationProjectName"`
PublisherUid string `json:"publisherUid"`
SponsorUid string `json:"sponsorUid"`
CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"`
Images []string `json:"images"`
}
DataCooperationProjectAdd struct {
CooperationProjectId int `json:"cooperationProjectId"`
}
)
//返回共创项目列表
type (
ReqCooperationProjectList struct {
}
DataCooperationProjectList struct {
}
)
//返回共创项目详情
type (
ReqCooperationProjectGet struct {
CooperationProjectId int
}
DataCooperationProjectGet struct {
CooperationProject struct {
CooperationMode struct {
CooperationModeID int `json:"cooperationModeId,string"`
CooperationModeName string `json:"cooperationModeName"`
CooperationModeNumber string `json:"cooperationModeNumber"`
} `json:"cooperationMode"`
CooperationProjectDescription string `json:"cooperationProjectDescription"`
Images []string `json:"images"`
CooperationProjectID int `json:"cooperationProjectId,string"`
CooperationProjectName string `json:"cooperationProjectName"`
CooperationProjectNumber string `json:"cooperationProjectNumber"`
CooperationProjectPublishTime string `json:"cooperationProjectPublishTime"`
CooperationProjectPublisher struct {
CooperationCompany string `json:"cooperationCompany"`
CooperationDeadline string `json:"cooperationDeadline"`
Email string `json:"email"`
Phone string `json:"phone"`
Status int `json:"status"`
UsersCode string `json:"usersCode"`
UsersID int `json:"usersId,string"`
UsersName string `json:"usersName"`
} `json:"cooperationProjectPublisher"`
CooperationProjectSponsor struct {
CooperationCompany string `json:"cooperationCompany"`
CooperationDeadline string `json:"cooperationDeadline"`
Email string `json:"email"`
Phone string `json:"phone"`
Status int `json:"status"`
UsersCode string `json:"usersCode"`
UsersID int `json:"usersId,string"`
UsersName string `json:"usersName"`
} `json:"cooperationProjectSponsor"`
CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"`
Department struct {
CompanyID int `json:"companyId,string"`
OrgCode string `json:"orgCode"`
OrgID int `json:"orgId,string"`
OrgName string `json:"orgName"`
} `json:"department"`
Status int `json:"status"`
} `json:"cooperationProject"`
}
)
//更新共创项目
type (
ReqCooperationProjectUpdate struct {
// 共创项目ID
CooperationProjectId string `json:"cooperationProjectId" `
// 共创项目名称
CooperationProjectName string `json:"cooperationProjectName"`
// 承接对象,1员工,2共创用户,3公开,可以多选
CooperationProjectUndertakerType []int32 `json:"cooperationProjectUndertakerType"`
// 共创项目发起人uid
SponsorUid string `json:"sponsorUid"`
// 共创项目发布人uid
PublisherUid string `json:"publisherUid"`
// 共创项目描述
CooperationProjectDescription string `json:"cooperationProjectDescription"`
Images []string `json:"images"`
}
DataCooperationProjectUpdate struct {
}
)
//移除共创项目
type (
ReqCooperationProjectRemove struct {
CooperationProjectID int
}
DataCooperationProjectRemove struct {
}
)
//发布共创项目
type (
ReqCooperationProjectsRelease struct {
}
DataCooperationProjectsRelease struct {
}
)
//查询共创项目
type (
ReqCooperationProjectSearch struct {
PageNumber int `json:"pageNumber"`
PageSize int `json:"pageSize"`
//发起部门名称
DepartmentName string `json:"departmentName"`
//项目名称
CooperationProjectName string `json:"cooperationProjectName"`
Status int `json:"status"`
}
DataCooperationProjectSearch struct {
Total int64 `json:"total"`
CooperationProjects []struct {
CooperationMode struct {
CooperationModeID int `json:"cooperationModeId,string,"`
CooperationModeName string `json:"cooperationModeName"`
CooperationModeNumber string `json:"cooperationModeNumber"`
} `json:"cooperationMode"`
CooperationProjectDescription string `json:"cooperationProjectDescription"`
Images []string `json:"images"`
CooperationProjectID int `json:"cooperationProjectId,string,"`
CooperationProjectName string `json:"cooperationProjectName"`
CooperationProjectNumber string `json:"cooperationProjectNumber"`
CooperationProjectPublishTime string `json:"cooperationProjectPublishTime"`
CooperationProjectPublisher struct {
CooperationCompany string `json:"cooperationCompany"`
CooperationDeadline string `json:"cooperationDeadline"`
Email string `json:"email"`
Phone string `json:"phone"`
Status int `json:"status"`
UsersCode string `json:"usersCode"`
UsersID int `json:"usersId,string,"`
UsersName string `json:"usersName"`
} `json:"cooperationProjectPublisher"`
CooperationProjectSponsor struct {
CooperationCompany string `json:"cooperationCompany"`
CooperationDeadline string `json:"cooperationDeadline"`
Email string `json:"email"`
Phone string `json:"phone"`
Status int `json:"status"`
UsersCode string `json:"usersCode"`
UsersID int `json:"usersId,string,"`
UsersName string `json:"usersName"`
} `json:"cooperationProjectSponsor"`
CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"`
Department struct {
CompanyID int `json:"companyId,string,"`
OrgCode string `json:"orgCode"`
OrgID int `json:"orgId,string,"`
OrgName string `json:"orgName"`
} `json:"department"`
Status int `json:"status"`
} `json:"cooperationProjects"`
}
)
//判断当前勾选的承接对象是否存在用户
type (
ReqCooperationProjectsCheck struct {
CooperationProjectId int `json:"cooperationProjectId"`
CooperationProjectUndertakerTypes []int `json:"cooperationProjectUndertakerTypes"`
}
DataCooperationProjectsCheck struct {
}
)