Created handleTranslation func. Added IsTranslation key to Message struct.

This commit is contained in:
Patrick Connolly
2018-10-23 20:17:42 +08:00
parent c42a4db10b
commit c0b64573a5
3 changed files with 179 additions and 172 deletions

View File

@@ -37,7 +37,8 @@ type Message struct {
Timestamp time.Time `json:"timestamp"`
ID string `json:"id"`
Extra map[string][]interface{}
TranslationSrcMsg *Message
OrigMsg *Message
IsTranslation bool
}
type FileInfo struct {