11package event
22
33type Notify struct {
4- SubType string `json:"sub_type"`
5- TargetId int64 `json:"target_id"`
6- UserId int64 `json:"user_id"`
7- GroupoupId int64 `json:"group_id"`
4+ SubType string `json:"sub_type"`
5+ TargetId int64 `json:"target_id"`
6+ UserId int64 `json:"user_id"`
7+ GroupId int64 `json:"group_id"`
88}
99
1010func (en Notify ) Type () string {
1111 return "notice:notify"
1212}
1313
1414type GroupRecall struct {
15- GroupoupId int64 `json:"group_id"`
15+ GroupId int64 `json:"group_id"`
1616 UserId int64 `json:"user_id"`
1717 OperatorId int64 `json:"operator_id"`
1818 MessageId int64 `json:"message_id"`
@@ -33,7 +33,7 @@ func (en PrivateRecall) Type() string {
3333
3434type GroupDecrease struct {
3535 SubType string `json:"sub_type"` // leave/kick/kick_me
36- GroupoupId int64 `json:"group_id"`
36+ GroupId int64 `json:"group_id"`
3737 UserId int64 `json:"user_id"`
3838 OperatorId int64 `json:"operator_id"`
3939}
@@ -44,7 +44,7 @@ func (en GroupDecrease) Type() string {
4444
4545type GroupIncrease struct {
4646 SubType string `json:"sub_type"` // approve/invite
47- GroupoupId int64 `json:"group_id"`
47+ GroupId int64 `json:"group_id"`
4848 UserId int64 `json:"user_id"`
4949 OperatorId int64 `json:"operator_id"`
5050}
@@ -54,19 +54,19 @@ func (en GroupIncrease) Type() string {
5454}
5555
5656type Admin struct {
57- SubType string `json:"sub_type"` // set/unset
58- GroupoupId int64 `json:"group_id"`
59- UserId int64 `json:"user_id"`
57+ SubType string `json:"sub_type"` // set/unset
58+ GroupId int64 `json:"group_id"`
59+ UserId int64 `json:"user_id"`
6060}
6161
6262func (en Admin ) Type () string {
6363 return "notice:group_admin"
6464}
6565
6666type GroupFile struct {
67- GroupoupId int64 `json:"group_id"`
68- UserId int64 `json:"user_id"`
69- File File `json:"file"`
67+ GroupId int64 `json:"group_id"`
68+ UserId int64 `json:"user_id"`
69+ File File `json:"file"`
7070}
7171
7272type File struct {
@@ -82,7 +82,7 @@ func (en GroupFile) Type() string {
8282
8383type GroupBan struct {
8484 SubType string `json:"sub_type"` // ban/lift_ban
85- GroupoupId int64 `json:"group_id"`
85+ GroupId int64 `json:"group_id"`
8686 UserId int64 `json:"user_id"`
8787 Duration int64 `json:"duration"` // s
8888 OperatorId int64 `json:"operator_id"`
0 commit comments