ref #61525 Добавить external_id в клиент апи транспортов
This commit is contained in:
parent
f6db774691
commit
221f51ed6c
@ -68,6 +68,7 @@ type MgClient struct {
|
|||||||
// Channel type
|
// Channel type
|
||||||
type Channel struct {
|
type Channel struct {
|
||||||
ID uint64 `json:"id,omitempty"`
|
ID uint64 `json:"id,omitempty"`
|
||||||
|
ExternalID string `json:"external_id,omitempty"`
|
||||||
Type string `json:"type,omitempty"`
|
Type string `json:"type,omitempty"`
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
AvatarUrl string `json:"avatar_url,omitempty"`
|
AvatarUrl string `json:"avatar_url,omitempty"`
|
||||||
@ -159,12 +160,14 @@ type UploadFileByUrlRequest struct {
|
|||||||
// ActivateResponse channel activation response
|
// ActivateResponse channel activation response
|
||||||
type ActivateResponse struct {
|
type ActivateResponse struct {
|
||||||
ChannelID uint64 `json:"id"`
|
ChannelID uint64 `json:"id"`
|
||||||
|
ExternalID string `json:"external_id"`
|
||||||
ActivatedAt time.Time `json:"activated_at"`
|
ActivatedAt time.Time `json:"activated_at"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateResponse channel update response
|
// UpdateResponse channel update response
|
||||||
type UpdateResponse struct {
|
type UpdateResponse struct {
|
||||||
ChannelID uint64 `json:"id"`
|
ChannelID uint64 `json:"id"`
|
||||||
|
ExternalID string `json:"external_id"`
|
||||||
UpdatedAt time.Time `json:"updated_at"`
|
UpdatedAt time.Time `json:"updated_at"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -177,6 +180,7 @@ type DeleteResponse struct {
|
|||||||
// ChannelListItem response struct
|
// ChannelListItem response struct
|
||||||
type ChannelListItem struct {
|
type ChannelListItem struct {
|
||||||
ID uint64 `json:"id"`
|
ID uint64 `json:"id"`
|
||||||
|
ExternalID string `json:"external_id"`
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
Name *string `json:"name"`
|
Name *string `json:"name"`
|
||||||
Settings ChannelSettings `json:"settings"`
|
Settings ChannelSettings `json:"settings"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user