Skip to content

Commit

Permalink
Merge pull request #371 from ArtisanCloud/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Matrix-X authored Aug 5, 2023
2 parents 1156e1f + 40629ee commit 68ded97
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type Member struct {
Type int `json:"type"`
JoinTime int `json:"join_time"`
JoinScene int `json:"join_scene"`
State string `json:"state"`
Invitor *Invitor `json:"invitor,omitempty"`
GroupNickname string `json:"group_nickname"`
Name string `json:"name"`
Expand Down
24 changes: 24 additions & 0 deletions src/work/server/handlers/models/externalContact.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,29 @@ type EventExternalUserDelFollowUser struct {
ExternalUserID string `xml:"ExternalUserID"`
}

type EventExternalChatCreate struct {
contract.EventInterface
models.CallbackMessageHeader
ChatID string `xml:"ChatId"`
}

type EventExternalChatUpdate struct {
contract.EventInterface
models.CallbackMessageHeader
ChatID string `xml:"ChatId"`
UpdateDetail string `xml:"UpdateDetail"`
JoinScene string `xml:"JoinScene"`
QuitScene string `xml:"QuitScene"`
MemChangeCnt string `xml:"MemChangeCnt"`
}

type EventExternalChatDismiss struct {
contract.EventInterface
models.CallbackMessageHeader
ChatID string `xml:"ChatId"`
}

// Deprecated: Use EventExternalChatUpdate instead.
type EventExternalUserUpdateAddMember struct {
contract.EventInterface
models.CallbackMessageHeader
Expand All @@ -84,6 +107,7 @@ type EventExternalUserUpdateAddMember struct {
MemChangeCnt string `xml:"MemChangeCnt"`
}

// Deprecated: Use EventExternalChatDismiss instead.
type EventExternalUserDismiss struct {
contract.EventInterface
models.CallbackMessageHeader
Expand Down

0 comments on commit 68ded97

Please sign in to comment.