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