From d149a39d309c131c45be97bf3ab0ad338e1b8d6f Mon Sep 17 00:00:00 2001 From: Ravi Suhag Date: Fri, 1 Nov 2024 19:07:26 +0530 Subject: [PATCH] feat: add json signature to audit model --- audit/model.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/audit/model.go b/audit/model.go index 6e37771..a702886 100644 --- a/audit/model.go +++ b/audit/model.go @@ -3,9 +3,9 @@ package audit import "time" type Log struct { - Timestamp time.Time - Action string - Actor string - Data interface{} - Metadata interface{} + Timestamp time.Time `json:"timestamp"` + Action string `json:"action"` + Actor string `json:"actor"` + Data interface{} `json:"data"` + Metadata interface{} `json:"metadata"` }