fix ChatWarsMessage
This commit is contained in:
parent
fdb36c7bcd
commit
a983da04a2
2
cron.go
2
cron.go
@ -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
1
def.go
@ -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"`
|
||||||
|
Loading…
Reference in New Issue
Block a user