diff options
author | George Goldberg <george@gberg.me> | 2017-07-11 09:09:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-11 09:09:15 +0100 |
commit | 83d53ea98cf5486f89bd4280b6b5ef835da4fd22 (patch) | |
tree | 1977949d599b3ce3b023f8699854d974be4d92a8 /model | |
parent | 0cc60abf6a33dca0d8317481f83d0eb2771f43a1 (diff) | |
download | chat-83d53ea98cf5486f89bd4280b6b5ef835da4fd22.tar.gz chat-83d53ea98cf5486f89bd4280b6b5ef835da4fd22.tar.bz2 chat-83d53ea98cf5486f89bd4280b6b5ef835da4fd22.zip |
PLT-6475: Elasticsearch Indexing Worker. (#6879)
Diffstat (limited to 'model')
-rw-r--r-- | model/post.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/model/post.go b/model/post.go index f5a398656..55e6f591d 100644 --- a/model/post.go +++ b/model/post.go @@ -62,6 +62,12 @@ type PostPatch struct { HasReactions *bool `json:"has_reactions"` } +type PostForIndexing struct { + Post + TeamId string `json:"team_id"` + ParentCreateAt *int64 `json:"parent_create_at"` +} + func (o *Post) ToJson() string { b, err := json.Marshal(o) if err != nil { |