update integration module edit response

This commit is contained in:
Alex Lushpai 2018-08-30 16:02:40 +03:00
parent 9d5bf461ca
commit 8d7f1d374f

View File

@ -326,7 +326,17 @@ type IntegrationModuleResponse struct {
// IntegrationModuleEditResponse type
type IntegrationModuleEditResponse struct {
Success bool `json:"success"`
Info map[string]string `json:"info,omitempty,brackets"`
Info ResponseInfo `json:"info,omitempty,brackets"`
}
type ResponseInfo struct {
MgTransportInfo MgInfo `json:"mgTransport,omitempty,brackets"`
MgBotInfo MgInfo `json:"mgBot,omitempty,brackets"`
}
type MgInfo struct {
EndpointUrl string `json:"endpointUrl"`
Token string `json:"token"`
}
// CostsResponse type