From 835bbb07277ad5436a4793cfefdeeb31dadd6b41 Mon Sep 17 00:00:00 2001 From: Hein Date: Fri, 27 Mar 2026 12:57:30 +0200 Subject: [PATCH] style(hooks): reorder fields in HookContext for consistency --- pkg/resolvemcp/hooks.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/pkg/resolvemcp/hooks.go b/pkg/resolvemcp/hooks.go index b98373a..327242b 100644 --- a/pkg/resolvemcp/hooks.go +++ b/pkg/resolvemcp/hooks.go @@ -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