From 31a515a74c3056977f0d5efb810492dd5cc07599 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 16 Jan 2020 15:53:19 +0800 Subject: [PATCH] test --- def.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/def.go b/def.go index b314c24..6e7e37d 100644 --- a/def.go +++ b/def.go @@ -73,20 +73,20 @@ type MQClient struct { } type ChirpClient struct { - HeartBeat time.Time `json:"heart_beat"` - Login string `json:"nickname"` - Active bool `json:"active"` - TGUserID64 int64 `json:"tg_user_id"` - MQ MQClient - CWUserID64 int64 `json:"user_id"` - CWGuildID64 int64 `json:"guild_id"` - CWRole string `json:"role"` - CWState string `json:"state"` - CWClass string `json:"class"` - CWBusyUntil time.Time `json:"busy_until"` - CWLastUpdate time.Time `json:"last_update"` - CWIdle bool `json:"idle"` - Mux sync.Mutex + HeartBeat time.Time `json:"heart_beat"` + Login string `json:"nickname"` + Active bool `json:"active"` + TGUserID64 int64 `json:"tg_user_id"` + MQ MQClient `json:"-"` + CWUserID64 int64 `json:"user_id"` + CWGuildID64 int64 `json:"guild_id"` + CWRole string `json:"role"` + CWState string `json:"state"` + CWClass string `json:"class"` + CWBusyUntil time.Time `json:"busy_until"` + CWLastUpdate time.Time `json:"last_update"` + CWIdle bool `json:"idle"` + Mux sync.Mutex `json:"-"` } type MQKeepAlive struct {