style(hooks): reorder fields in HookContext for consistency

This commit is contained in:
Hein
2026-03-27 12:57:30 +02:00
parent 047a1cc187
commit 835bbb0727

View File

@@ -30,22 +30,22 @@ const (
// HookContext contains all the data available to a hook
type HookContext struct {
Context context.Context
Handler *Handler
Schema string
Entity string
Model interface{}
Options common.RequestOptions
Operation string
ID string
Data interface{}
Result interface{}
Error error
Query common.SelectQuery
Abort bool
Context context.Context
Handler *Handler
Schema string
Entity string
Model interface{}
Options common.RequestOptions
Operation string
ID string
Data interface{}
Result interface{}
Error error
Query common.SelectQuery
Abort bool
AbortMessage string
AbortCode int
Tx common.Database
Tx common.Database
}
// HookFunc is the signature for hook functions