diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-03-13 09:23:16 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-03-13 09:23:16 -0400 |
commit | e9c6cc269b5c9fe82e5f38d63344a07365bccd6b (patch) | |
tree | 711fefd3511dbd5a7f1a20225f00b766eb4808f7 /model | |
parent | 8b0eedbbcd47ba09142c72a71969840aa6e121d2 (diff) | |
download | chat-e9c6cc269b5c9fe82e5f38d63344a07365bccd6b.tar.gz chat-e9c6cc269b5c9fe82e5f38d63344a07365bccd6b.tar.bz2 chat-e9c6cc269b5c9fe82e5f38d63344a07365bccd6b.zip |
Move command logic into app layer (#5617)
Diffstat (limited to 'model')
-rw-r--r-- | model/command_args.go | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/model/command_args.go b/model/command_args.go index 4da5dc760..f512410a3 100644 --- a/model/command_args.go +++ b/model/command_args.go @@ -6,13 +6,20 @@ package model import ( "encoding/json" "io" + + goi18n "github.com/nicksnyder/go-i18n/i18n" ) type CommandArgs struct { - ChannelId string `json:"channel_id"` - RootId string `json:"root_id"` - ParentId string `json:"parent_id"` - Command string `json:"command"` + UserId string `json:"user_id"` + ChannelId string `json:"channel_id"` + TeamId string `json:"team_id"` + RootId string `json:"root_id"` + ParentId string `json:"parent_id"` + Command string `json:"command"` + SiteURL string `json:"-"` + T goi18n.TranslateFunc `json:"-"` + Session Session `json:"-"` } func (o *CommandArgs) ToJson() string { |