PLT-5800 Cleaned up duplicated code for adding slack attachments to posts (#5711)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
06930f378c
Коммит
06a7c3ba8e
@@ -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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user