Merge pull request #484 from trheyi/main

[change] neo context type
This commit is contained in:
Max 2023-10-21 00:58:12 +08:00 committed by GitHub
commit 87ae7596d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,12 +69,20 @@ type Optional struct {
// Context the context // Context the context
type Context struct { type Context struct {
Sid string `json:"sid" yaml:"-"` Sid string `json:"sid" yaml:"-"`
Stack string `json:"stack,omitempty"` Stack string `json:"stack,omitempty"`
Path string `json:"pathname,omitempty"` Path string `json:"pathname,omitempty"`
FormData map[string]interface{} `json:"formdata,omitempty"`
Field *ContextField `json:"field,omitempty"`
context.Context `json:"-" yaml:"-"` 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 // Store the command driver
type Store interface { type Store interface {
Match(query query.Param, content string) (string, error) Match(query query.Param, content string) (string, error)