This commit is contained in:
shoopea 2020-01-16 15:53:19 +08:00
parent ae3a5ba725
commit 31a515a74c

4
def.go
View File

@ -77,7 +77,7 @@ type ChirpClient struct {
Login string `json:"nickname"` Login string `json:"nickname"`
Active bool `json:"active"` Active bool `json:"active"`
TGUserID64 int64 `json:"tg_user_id"` TGUserID64 int64 `json:"tg_user_id"`
MQ MQClient MQ MQClient `json:"-"`
CWUserID64 int64 `json:"user_id"` CWUserID64 int64 `json:"user_id"`
CWGuildID64 int64 `json:"guild_id"` CWGuildID64 int64 `json:"guild_id"`
CWRole string `json:"role"` CWRole string `json:"role"`
@ -86,7 +86,7 @@ type ChirpClient struct {
CWBusyUntil time.Time `json:"busy_until"` CWBusyUntil time.Time `json:"busy_until"`
CWLastUpdate time.Time `json:"last_update"` CWLastUpdate time.Time `json:"last_update"`
CWIdle bool `json:"idle"` CWIdle bool `json:"idle"`
Mux sync.Mutex Mux sync.Mutex `json:"-"`
} }
type MQKeepAlive struct { type MQKeepAlive struct {