fonchain-fiee/pkg/service/asChat/robot/task.go

21 lines
514 B
Go
Raw Normal View History

2025-06-14 06:46:01 +00:00
// Package robot -----------------------------
// @file : task.go
// @author : JJXu
// @contact : wavingbear@163.com
// @time : 2025/6/13 18:02
// -------------------------------------------
package robot
2025-06-16 09:58:00 +00:00
import (
"fonchain-fiee/api/accountFiee"
"fonchain-fiee/pkg/service/asChat/chatCache"
"time"
)
2025-06-14 06:46:01 +00:00
type RobotTask struct {
RunTime time.Time
2025-06-16 09:58:00 +00:00
Run func(msg string, cache *chatCache.ChatCache, Sender *accountFiee.ChatUserData) error
2025-06-14 06:46:01 +00:00
Response string
2025-06-16 09:58:00 +00:00
ChatUser *accountFiee.ChatUserData
2025-06-14 06:46:01 +00:00
}