Files
Memoh/internal/schedule/trigger.go
T
BBQ 06e8619a37 refactor(core): migrate channel identity and binding across app
Align channel identity and bind flow across backend and app-facing layers, including generated swagger artifacts and package lock updates while excluding docs content changes.
2026-02-11 14:51:58 +08:00

21 lines
503 B
Go

package schedule
import "context"
// TriggerPayload describes the parameters passed to the chat side when a schedule triggers.
type TriggerPayload struct {
ID string
Name string
Description string
Pattern string
MaxCalls *int
Command string
OwnerUserID string
ChatID string
}
// Triggerer 负责触发与聊天相关的调度执行。
type Triggerer interface {
TriggerSchedule(ctx context.Context, botID string, payload TriggerPayload, token string) error
}