From 7563649d9bd65bfcc91dc0081f4f2b17b4ba36d8 Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 15 May 2019 14:48:11 +0800 Subject: [PATCH] update def --- def.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/def.go b/def.go index e6f951e..3089784 100644 --- a/def.go +++ b/def.go @@ -4,6 +4,16 @@ import ( "time" ) +type ChatWarsCommand struct { + Type int64 `json:"type"` + FromChatID64 int64 `json:"from_chat_id"` + FromUserID64 int64 `json:"from_user_id"` + FromMsgID64 int64 `json:"from_msg_id"` + ToChatID64 int64 `json:"to_chat_id"` + ToUserID64 int64 `json:"to_user_id"` + Text string `json:"text"` +} + type ChatWarsMessage struct { UserID64 int64 `json:"user_id"` SenderUserID64 int64 `json:"sender_user_id"` @@ -13,16 +23,6 @@ type ChatWarsMessage struct { Text string `json:"text"` } -type ChatWarsCommand struct { - Type int64 `json:"type"` - FromChatID64 int64 `json:"from_chat_id"` - FromUserID64 int64 `json:"from_user_id"` - FromMsgID64 int64 `json:"from_msg_id"` - ToChatID64 int64 `json:"to_chat_id"` - ToUserID64 int64 `json:"to_user_id"` - Text int64 `json:"text"` -} - const ( commandForwardMsg = 1 commandReplyMsg = 2