rename json fields for GetAllSharedChannels to match other channel objects (#17634)

Response field names changed for experimental API GetAllSharedChannels to match the field names for other channels APIs.
Этот коммит содержится в:
Doug Lauder
2021-05-18 09:38:07 -04:00
коммит произвёл GitHub
родитель 09f99e2426
Коммит c8bc9e336d

Просмотреть файл

@@ -16,14 +16,14 @@ import (
// If "home" is false, then the shared channel is homed remotely, and "RemoteId" // If "home" is false, then the shared channel is homed remotely, and "RemoteId"
// field points to the remote cluster connection in "RemoteClusters" table. // field points to the remote cluster connection in "RemoteClusters" table.
type SharedChannel struct { type SharedChannel struct {
ChannelId string `json:"channel_id"` ChannelId string `json:"id"`
TeamId string `json:"team_id"` TeamId string `json:"team_id"`
Home bool `json:"home"` Home bool `json:"home"`
ReadOnly bool `json:"readonly"` ReadOnly bool `json:"readonly"`
ShareName string `json:"share_name"` ShareName string `json:"name"`
ShareDisplayName string `json:"share_displayname"` ShareDisplayName string `json:"display_name"`
SharePurpose string `json:"share_purpose"` SharePurpose string `json:"purpose"`
ShareHeader string `json:"share_header"` ShareHeader string `json:"header"`
CreatorId string `json:"creator_id"` CreatorId string `json:"creator_id"`
CreateAt int64 `json:"create_at"` CreateAt int64 `json:"create_at"`
UpdateAt int64 `json:"update_at"` UpdateAt int64 `json:"update_at"`