add external id to user ref

This commit is contained in:
Shchedrin Andrei 2022-07-20 16:45:38 +03:00
parent a26bc83d80
commit f2c8b2ce83

View File

@ -512,6 +512,7 @@ type (
UserRef struct { UserRef struct {
ID uint64 `json:"id"` ID uint64 `json:"id"`
ExternalID uint64 `json:"external_id"`
Avatar string `json:"avatar"` Avatar string `json:"avatar"`
Type string `json:"type"` Type string `json:"type"`
Name string `json:"name"` Name string `json:"name"`
@ -722,7 +723,7 @@ type (
} }
WsEventUserOnlineUpdatedData struct { WsEventUserOnlineUpdatedData struct {
User *UsersResponseItem `json:"user"` User *UserRef `json:"user"`
Online bool `json:"online"` Online bool `json:"online"`
} }