diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-03-13 09:46:28 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-03-13 09:46:28 -0400 |
commit | a284cd8c1817bb5419cb9eae118c85cd7e99c039 (patch) | |
tree | 71fd6ace54692477acea746f47b3266514ae9292 /model/channel_member.go | |
parent | 5ec49c0db03d4ec6fd36619055f99c9a3bb34148 (diff) | |
download | chat-a284cd8c1817bb5419cb9eae118c85cd7e99c039.tar.gz chat-a284cd8c1817bb5419cb9eae118c85cd7e99c039.tar.bz2 chat-a284cd8c1817bb5419cb9eae118c85cd7e99c039.zip |
Implement some team endpoints for APIv4 (#5745)
* Implement PUT /teams/{team_id} endpoint for APIv4
* Implement GET /users/{user_id}/teams/{team_id}/unread endpoint for APIv4
* Implement POST /teams/{team_id}/members/ids endpoint for APIv4
* Remove debug statement
Diffstat (limited to 'model/channel_member.go')
-rw-r--r-- | model/channel_member.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/model/channel_member.go b/model/channel_member.go index 5de58bc4f..b9a08c769 100644 --- a/model/channel_member.go +++ b/model/channel_member.go @@ -19,11 +19,11 @@ const ( ) type ChannelUnread struct { - TeamId string - TotalMsgCount int64 - MsgCount int64 - MentionCount int64 - NotifyProps StringMap + TeamId string `json:"team_id"` + ChannelId string `json:"channel_id"` + MsgCount int64 `json:"msg_count"` + MentionCount int64 `json:"mention_count"` + NotifyProps StringMap `json:"-"` } type ChannelMember struct { |