Skip to content

Commit

Permalink
Merge pull request #484 from trheyi/main
Browse files Browse the repository at this point in the history
[change] neo context type
  • Loading branch information
trheyi authored Oct 20, 2023
2 parents 528dc7f + 9e88507 commit 87ae759
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions neo/command/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 87ae759

Please sign in to comment.