From 199705b555137a0507c25dfea8f0015eacebecfb Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Fri, 17 Dec 2021 02:03:07 +0800 Subject: [PATCH] update --- history/helper.go | 4 ++++ history/history.go | 1 + 2 files changed, 5 insertions(+) diff --git a/history/helper.go b/history/helper.go index d4a517b..0fc3761 100644 --- a/history/helper.go +++ b/history/helper.go @@ -26,6 +26,10 @@ func getBase() *History { return h } +func (h *History) Nm(name string) *History { + h.Name = name + return h +} func (h *History) Msg(msg string) *History { h.Message = msg return h diff --git a/history/history.go b/history/history.go index 7f5797c..fa690a2 100644 --- a/history/history.go +++ b/history/history.go @@ -26,6 +26,7 @@ type History struct { Caller string Trace string + Name string Message string Body interface{} `gorm:"-"` Issuer string