-
Notifications
You must be signed in to change notification settings - Fork 165
/
party.go
37 lines (31 loc) · 899 Bytes
/
party.go
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
package models
import (
"github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/contract"
"github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/models"
)
// https://developer.work.weixin.qq.com/document/path/90971
const (
CALLBACK_EVENT_CHANGE_TYPE_CREATE_PARTY = "create_party"
CALLBACK_EVENT_CHANGE_TYPE_UPDATE_PARTY = "update_party"
CALLBACK_EVENT_CHANGE_TYPE_DELETE_PARTY = "delete_party"
)
type EventPartyCreate struct {
contract.EventInterface
models.CallbackMessageHeader
ID string `xml:"Id"`
Name string `xml:"Name"`
ParentID string `xml:"ParentId"`
Order string `xml:"Order"`
}
type EventPartyUpdate struct {
contract.EventInterface
models.CallbackMessageHeader
ID string `xml:"Id"`
Name string `xml:"Name"`
ParentID string `xml:"ParentId"`
}
type EventPartyDelete struct {
contract.EventInterface
models.CallbackMessageHeader
ID string `xml:"Id"`
}