mirror of
https://github.com/retailcrm/mg-bot-api-client-go.git
synced 2025-03-30 11:30:12 +03:00
add external id to user ref
This commit is contained in:
parent
a26bc83d80
commit
f2c8b2ce83
1 changed files with 13 additions and 12 deletions
25
v1/types.go
25
v1/types.go
|
@ -511,16 +511,17 @@ type (
|
||||||
}
|
}
|
||||||
|
|
||||||
UserRef struct {
|
UserRef struct {
|
||||||
ID uint64 `json:"id"`
|
ID uint64 `json:"id"`
|
||||||
Avatar string `json:"avatar"`
|
ExternalID uint64 `json:"external_id"`
|
||||||
Type string `json:"type"`
|
Avatar string `json:"avatar"`
|
||||||
Name string `json:"name"`
|
Type string `json:"type"`
|
||||||
FirstName string `json:"first_name,omitempty"`
|
Name string `json:"name"`
|
||||||
LastName string `json:"last_name,omitempty"`
|
FirstName string `json:"first_name,omitempty"`
|
||||||
Phone string `json:"phone,omitempty"`
|
LastName string `json:"last_name,omitempty"`
|
||||||
Email string `json:"email,omitempty"`
|
Phone string `json:"phone,omitempty"`
|
||||||
IsAdmin bool `json:"is_admin"`
|
Email string `json:"email,omitempty"`
|
||||||
Available bool `json:"available"`
|
IsAdmin bool `json:"is_admin"`
|
||||||
|
Available bool `json:"available"`
|
||||||
}
|
}
|
||||||
|
|
||||||
Channel struct {
|
Channel struct {
|
||||||
|
@ -722,8 +723,8 @@ type (
|
||||||
}
|
}
|
||||||
|
|
||||||
WsEventUserOnlineUpdatedData struct {
|
WsEventUserOnlineUpdatedData struct {
|
||||||
User *UsersResponseItem `json:"user"`
|
User *UserRef `json:"user"`
|
||||||
Online bool `json:"online"`
|
Online bool `json:"online"`
|
||||||
}
|
}
|
||||||
|
|
||||||
WsEventChatsDeletedData struct {
|
WsEventChatsDeletedData struct {
|
||||||
|
|
Loading…
Add table
Reference in a new issue