mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
06e8619a37
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.
21 lines
503 B
Go
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
|
|
}
|