mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2026-04-05 07:32:26 +00:00
style(hooks): reorder fields in HookContext for consistency
This commit is contained in:
@@ -30,22 +30,22 @@ const (
|
|||||||
|
|
||||||
// HookContext contains all the data available to a hook
|
// HookContext contains all the data available to a hook
|
||||||
type HookContext struct {
|
type HookContext struct {
|
||||||
Context context.Context
|
Context context.Context
|
||||||
Handler *Handler
|
Handler *Handler
|
||||||
Schema string
|
Schema string
|
||||||
Entity string
|
Entity string
|
||||||
Model interface{}
|
Model interface{}
|
||||||
Options common.RequestOptions
|
Options common.RequestOptions
|
||||||
Operation string
|
Operation string
|
||||||
ID string
|
ID string
|
||||||
Data interface{}
|
Data interface{}
|
||||||
Result interface{}
|
Result interface{}
|
||||||
Error error
|
Error error
|
||||||
Query common.SelectQuery
|
Query common.SelectQuery
|
||||||
Abort bool
|
Abort bool
|
||||||
AbortMessage string
|
AbortMessage string
|
||||||
AbortCode int
|
AbortCode int
|
||||||
Tx common.Database
|
Tx common.Database
|
||||||
}
|
}
|
||||||
|
|
||||||
// HookFunc is the signature for hook functions
|
// HookFunc is the signature for hook functions
|
||||||
|
|||||||
Reference in New Issue
Block a user