fix ChatWarsMessage

This commit is contained in:
shoopea 2019-12-12 17:49:18 +08:00
parent fdb36c7bcd
commit a983da04a2
2 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,7 @@ func startCron() *cron.Cron {
c := cron.New(cron.WithLocation(time.UTC)) c := cron.New(cron.WithLocation(time.UTC))
c.AddFunc("@every 1m", cronSendReport) c.AddFunc("@every 1m", cronSendReport)
c.Start() c.Start()
return return c
} }
func stopCron(c *cron.Cron) { func stopCron(c *cron.Cron) {

1
def.go
View File

@ -101,6 +101,7 @@ type ChatWarsCallback struct {
} }
type ChatWarsMessage struct { type ChatWarsMessage struct {
ObjID64 int64 `json:"obj_id"`
TGUserID64 int64 `json:"tg_user_id"` TGUserID64 int64 `json:"tg_user_id"`
TGSenderUserID64 int64 `json:"tg_sender_user_id"` TGSenderUserID64 int64 `json:"tg_sender_user_id"`
Date time.Time `json:"date"` Date time.Time `json:"date"`