feat: initial commit
This commit is contained in:
29
internal/domain/entity/workflow.go
Normal file
29
internal/domain/entity/workflow.go
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user