Files
gateway-telegram/internal/domain/entity/workflow.go

30 lines
456 B
Go

package entity
import "time"
type WorkflowRequest struct {
RequestID string
ChatID int64
UserID int64
Username string
MessageText string
Intent Intent
Session Session
Timestamp time.Time
Metadata map[string]any
}
type Action struct {
Type string
Key string
Value any
}
type WorkflowResponse struct {
RequestID string
ReplyText string
Actions []Action
NextWorkflow string
Error error
}