Skip to content

Commit

Permalink
🩹 Modify UserGroupDeleted payload
Browse files Browse the repository at this point in the history
  • Loading branch information
H1rono committed Aug 24, 2023
1 parent 4523aee commit 6055637
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions service/bot/event/payload/ev_user_group_deleted.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,12 @@ import (
// UserGroupDeleted USER_GROUP_DELETEDイベントペイロード
type UserGroupDeleted struct {
Base
Group struct {
ID uuid.UUID `json:"id"`
} `json:"group"`
GroupID uuid.UUID `json:"groupId"`
}

func MakeUserGroupDeleted(eventTime time.Time, group model.UserGroup) *UserGroupDeleted {
return &UserGroupDeleted{
Base: MakeBase(eventTime),
Group: struct {
ID uuid.UUID `json:"id"`
}{ID: group.ID},
Base: MakeBase(eventTime),
GroupID: group.ID,
}
}

0 comments on commit 6055637

Please sign in to comment.