diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-07-23 09:39:29 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-08-18 08:58:02 -0400 |
commit | 32f7b50bb5c62d27def3f2e6d2839511c0b8f9a9 (patch) | |
tree | 1203fd854bf7ea843a35ce52382b0846ffa3873a /model/post.go | |
parent | 4805608cc9cf79277f37b94bbe38398816469884 (diff) | |
download | chat-32f7b50bb5c62d27def3f2e6d2839511c0b8f9a9.tar.gz chat-32f7b50bb5c62d27def3f2e6d2839511c0b8f9a9.tar.bz2 chat-32f7b50bb5c62d27def3f2e6d2839511c0b8f9a9.zip |
adds predictive posting on the client
Diffstat (limited to 'model/post.go')
-rw-r--r-- | model/post.go | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/model/post.go b/model/post.go index f6f33b1e8..0c035d4e7 100644 --- a/model/post.go +++ b/model/post.go @@ -14,21 +14,22 @@ const ( ) type Post struct { - Id string `json:"id"` - CreateAt int64 `json:"create_at"` - UpdateAt int64 `json:"update_at"` - DeleteAt int64 `json:"delete_at"` - UserId string `json:"user_id"` - ChannelId string `json:"channel_id"` - RootId string `json:"root_id"` - ParentId string `json:"parent_id"` - OriginalId string `json:"original_id"` - Message string `json:"message"` - ImgCount int64 `json:"img_count"` - Type string `json:"type"` - Props StringMap `json:"props"` - Hashtags string `json:"hashtags"` - Filenames StringArray `json:"filenames"` + Id string `json:"id"` + CreateAt int64 `json:"create_at"` + UpdateAt int64 `json:"update_at"` + DeleteAt int64 `json:"delete_at"` + UserId string `json:"user_id"` + ChannelId string `json:"channel_id"` + RootId string `json:"root_id"` + ParentId string `json:"parent_id"` + OriginalId string `json:"original_id"` + Message string `json:"message"` + ImgCount int64 `json:"img_count"` + Type string `json:"type"` + Props StringMap `json:"props"` + Hashtags string `json:"hashtags"` + Filenames StringArray `json:"filenames"` + PendingPostId string `json:"pending_post_id" db:"-"` } func (o *Post) ToJson() string { |