Skip to content

Commit 3b730c7

Browse files
author
Matrix-X
committed
feat(work): ApprovalInfo new fields
1 parent 5fb0932 commit 3b730c7

File tree

1 file changed

+44
-11
lines changed

1 file changed

+44
-11
lines changed

src/work/server/handlers/models/event.go

Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,51 @@ type Comments struct {
206206
CommentID string `xml:"CommentId"`
207207
}
208208

209+
type ApprovalNode struct {
210+
NodeStatus int `xml:"NodeStatus"`
211+
NodeAttr int `xml:"NodeAttr"`
212+
NodeType int `xml:"NodeType"`
213+
ApprovalItems []ApprovalItem `xml:"Items>Item"`
214+
}
215+
216+
type ApprovalItem struct {
217+
ItemName string `xml:"ItemName"`
218+
ItemUserId string `xml:"ItemUserId"`
219+
ItemImage string `xml:"ItemImage"`
220+
ItemStatus int `xml:"ItemStatus"`
221+
ItemSpeech string `xml:"ItemSpeech"`
222+
ItemOpTime int64 `xml:"ItemOpTime"`
223+
}
224+
225+
type NotifyNode struct {
226+
ItemName string `xml:"ItemName"`
227+
ItemUserId string `xml:"ItemUserId"`
228+
ItemImage string `xml:"ItemImage"`
229+
}
230+
209231
type ApprovalInfo struct {
210-
Text string `xml:",chardata"`
211-
SpNO string `xml:"SpNo"`
212-
SpName string `xml:"SpName"`
213-
SpStatus string `xml:"SpStatus"`
214-
TemplateID string `xml:"TemplateId"`
215-
ApplyTime string `xml:"ApplyTime"`
216-
Applier *Applier `xml:"Applyer"`
217-
SpRecord []*SPRecord `xml:"SpRecord"`
218-
Notifier *Notifier `xml:"Notifyer"`
219-
Comments *Comments `xml:"Comments"`
220-
StatusChangeEvent string `xml:"StatuChangeEvent"`
232+
Text string `xml:",chardata"`
233+
SpNO string `xml:"SpNo"`
234+
SpName string `xml:"SpName"`
235+
SpStatus string `xml:"SpStatus"`
236+
TemplateID string `xml:"TemplateId"`
237+
ApplyTime string `xml:"ApplyTime"`
238+
Applier *Applier `xml:"Applyer"`
239+
SpRecord []*SPRecord `xml:"SpRecord"`
240+
Notifier *Notifier `xml:"Notifyer"`
241+
Comments *Comments `xml:"Comments"`
242+
StatusChangeEvent string `xml:"StatuChangeEvent"`
243+
ThirdNo string `xml:"ThirdNo"`
244+
OpenSpName string `xml:"OpenSpName"`
245+
OpenTemplateId string `xml:"OpenTemplateId"`
246+
OpenSpStatus int `xml:"OpenSpStatus"`
247+
ApplyUserName string `xml:"ApplyUserName"`
248+
ApplyUserId string `xml:"ApplyUserId"`
249+
ApplyUserParty string `xml:"ApplyUserParty"`
250+
ApplyUserImage string `xml:"ApplyUserImage"`
251+
ApprovalNodes []ApprovalNode `xml:"ApprovalNodes"`
252+
NotifyNodes []NotifyNode `xml:"NotifyNode"`
253+
ApproverStep int `xml:"approverstep"`
221254
}
222255

223256
type EventOpenApprovalChange struct {

0 commit comments

Comments
 (0)