diff options
author | =Corey Hulen <corey@hulen.com> | 2016-01-08 22:57:38 -0600 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-01-08 22:57:38 -0600 |
commit | e1f4cc4bb004a0a0d4bb6d68ff328233f9f72aa0 (patch) | |
tree | 8cf6a2257e43fae745bca6e5da14edd6bb5493f9 /model/command.go | |
parent | 3fba8e42b140c1189bf3c06882cce5e2231e63da (diff) | |
download | chat-e1f4cc4bb004a0a0d4bb6d68ff328233f9f72aa0.tar.gz chat-e1f4cc4bb004a0a0d4bb6d68ff328233f9f72aa0.tar.bz2 chat-e1f4cc4bb004a0a0d4bb6d68ff328233f9f72aa0.zip |
Adding web service methods
Diffstat (limited to 'model/command.go')
-rw-r--r-- | model/command.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/model/command.go b/model/command.go index 253021896..c917a46ea 100644 --- a/model/command.go +++ b/model/command.go @@ -133,3 +133,12 @@ func (o *Command) PreSave() { func (o *Command) PreUpdate() { o.UpdateAt = GetMillis() } + +func (o *Command) Sanatize() { + o.Token = "" + o.CreatorId = "" + o.Method = "" + o.URL = "" + o.Username = "" + o.IconURL = "" +} |