Skip to content

Commit 0933ce4

Browse files
author
Matrix-X
committed
add(openWork): add EventChangeAppAdmin for type InfoTypeChangeAppAdmin
1 parent 68c96fa commit 0933ce4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/openWork/server/models/event.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const (
2323
InfoTypeCorpArchAuth InfoType = "corp_arch_auth"
2424
InfoTypeApproveSpecialAuth InfoType = "approve_special_auth"
2525
InfoTypeCancelSpecialAuth InfoType = "cancel_special_auth"
26+
InfoTypeChangeAppAdmin InfoType = "change_app_admin"
2627
)
2728

2829
type ChangeType = string
@@ -114,6 +115,8 @@ func (msg BaseEvent) ToEvent() (IEvent, error) {
114115
return new(EventCorpArchAuth), nil
115116
case InfoTypeApproveSpecialAuth, InfoTypeCancelSpecialAuth:
116117
return new(EventSpecialAuth), nil
118+
case InfoTypeChangeAppAdmin:
119+
return new(EventChangeAppAdmin), nil
117120
default:
118121
return nil, errors.New("unknown event")
119122
}
@@ -215,3 +218,8 @@ type EventSpecialAuth struct {
215218
AuthCorpID string `xml:"AuthCorpId"`
216219
AuthType string `xml:"AuthType"`
217220
}
221+
222+
type EventChangeAppAdmin struct {
223+
BaseEvent
224+
AgentID string `xml:"AgentID"`
225+
}

0 commit comments

Comments
 (0)