Skip to content

Commit 33e3664

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

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

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

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -229,28 +229,29 @@ type NotifyNode struct {
229229
}
230230

231231
type ApprovalInfo struct {
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"`
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+
// new fields
244+
ThirdNo string `xml:"ThirdNo"`
245+
OpenSpName string `xml:"OpenSpName"`
246+
OpenTemplateId string `xml:"OpenTemplateId"`
247+
OpenSpStatus int `xml:"OpenSpStatus"`
248+
ApplyUserName string `xml:"ApplyUserName"`
249+
ApplyUserId string `xml:"ApplyUserId"`
250+
ApplyUserParty string `xml:"ApplyUserParty"`
251+
ApplyUserImage string `xml:"ApplyUserImage"`
252+
ApprovalNodes []ApprovalNode `xml:"ApprovalNodes"`
253+
NotifyNodes []NotifyNode `xml:"NotifyNode"`
254+
ApproverStep int `xml:"approverstep"`
254255
}
255256

256257
type EventOpenApprovalChange struct {

0 commit comments

Comments
 (0)