From 221f51ed6c36d680eba93dd28a6a6b8267c50dae Mon Sep 17 00:00:00 2001 From: Rinat Magrov Date: Thu, 22 Aug 2019 13:46:46 +0300 Subject: [PATCH] =?UTF-8?q?ref=20#61525=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=20external=5Fid=20=D0=B2=20=D0=BA=D0=BB?= =?UTF-8?q?=D0=B8=D0=B5=D0=BD=D1=82=20=D0=B0=D0=BF=D0=B8=20=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D1=81=D0=BF=D0=BE=D1=80=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v1/types.go | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/v1/types.go b/v1/types.go index 7121b38..c497947 100644 --- a/v1/types.go +++ b/v1/types.go @@ -67,11 +67,12 @@ type MgClient struct { // Channel type type Channel struct { - ID uint64 `json:"id,omitempty"` - Type string `json:"type,omitempty"` - Name string `json:"name,omitempty"` - AvatarUrl string `json:"avatar_url,omitempty"` - Settings ChannelSettings `json:"settings,omitempty,brackets"` + ID uint64 `json:"id,omitempty"` + ExternalID string `json:"external_id,omitempty"` + Type string `json:"type,omitempty"` + Name string `json:"name,omitempty"` + AvatarUrl string `json:"avatar_url,omitempty"` + Settings ChannelSettings `json:"settings,omitempty,brackets"` } // ChannelSettings struct @@ -159,13 +160,15 @@ type UploadFileByUrlRequest struct { // ActivateResponse channel activation response type ActivateResponse struct { ChannelID uint64 `json:"id"` + ExternalID string `json:"external_id"` ActivatedAt time.Time `json:"activated_at"` } // UpdateResponse channel update response type UpdateResponse struct { - ChannelID uint64 `json:"id"` - UpdatedAt time.Time `json:"updated_at"` + ChannelID uint64 `json:"id"` + ExternalID string `json:"external_id"` + UpdatedAt time.Time `json:"updated_at"` } // DeleteResponse channel deactivation response @@ -177,6 +180,7 @@ type DeleteResponse struct { // ChannelListItem response struct type ChannelListItem struct { ID uint64 `json:"id"` + ExternalID string `json:"external_id"` Type string `json:"type"` Name *string `json:"name"` Settings ChannelSettings `json:"settings"`