summaryrefslogtreecommitdiffstats
path: root/model/command_args.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-03-13 09:23:16 -0400
committerChristopher Speller <crspeller@gmail.com>2017-03-13 09:23:16 -0400
commite9c6cc269b5c9fe82e5f38d63344a07365bccd6b (patch)
tree711fefd3511dbd5a7f1a20225f00b766eb4808f7 /model/command_args.go
parent8b0eedbbcd47ba09142c72a71969840aa6e121d2 (diff)
downloadchat-e9c6cc269b5c9fe82e5f38d63344a07365bccd6b.tar.gz
chat-e9c6cc269b5c9fe82e5f38d63344a07365bccd6b.tar.bz2
chat-e9c6cc269b5c9fe82e5f38d63344a07365bccd6b.zip
Move command logic into app layer (#5617)
Diffstat (limited to 'model/command_args.go')
-rw-r--r--model/command_args.go15
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 {