diff --git a/neo/command/types.go b/neo/command/types.go index 072ed3bf..2c8652c4 100644 --- a/neo/command/types.go +++ b/neo/command/types.go @@ -69,12 +69,20 @@ type Optional struct { // Context the context type Context struct { - Sid string `json:"sid" yaml:"-"` - Stack string `json:"stack,omitempty"` - Path string `json:"pathname,omitempty"` + Sid string `json:"sid" yaml:"-"` + Stack string `json:"stack,omitempty"` + Path string `json:"pathname,omitempty"` + FormData map[string]interface{} `json:"formdata,omitempty"` + Field *ContextField `json:"field,omitempty"` context.Context `json:"-" yaml:"-"` } +// ContextField the context field +type ContextField struct { + Name string `json:"name,omitempty"` + Bind string `json:"bind,omitempty"` +} + // Store the command driver type Store interface { Match(query query.Param, content string) (string, error)