PLT-5800 Cleaned up duplicated code for adding slack attachments to posts (#5711)

Этот коммит содержится в:
Harrison Healey
2017-03-10 05:22:14 -05:00
коммит произвёл George Goldberg
родитель 06930f378c
Коммит 06a7c3ba8e
4 изменённых файлов: 19 добавлений и 91 удалений

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

@@ -4,6 +4,7 @@
package model
type SlackAttachment struct {
Id int64 `json:"id"`
Fallback string `json:"fallback"`
Color string `json:"color"`
Pretext string `json:"pretext"`
@@ -18,7 +19,7 @@ type SlackAttachment struct {
ThumbURL string `json:"thumb_url"`
Footer string `json:"footer"`
FooterIcon string `json:"footer_icon"`
Timestamp int64 `json:"ts"`
Timestamp interface{} `json:"ts"` // This is either a string or an int64
}
type SlackAttachmentField struct {