[change] neo context type

This commit is contained in:
Max 2023-10-21 00:57:38 +08:00
parent ef941450ac
commit 9e88507e83

View file

@ -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)