master
Evan Chen 2021-12-17 02:03:07 +08:00
parent e761516c02
commit 199705b555
2 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,10 @@ func getBase() *History {
return h return h
} }
func (h *History) Nm(name string) *History {
h.Name = name
return h
}
func (h *History) Msg(msg string) *History { func (h *History) Msg(msg string) *History {
h.Message = msg h.Message = msg
return h return h

View File

@ -26,6 +26,7 @@ type History struct {
Caller string Caller string
Trace string Trace string
Name string
Message string Message string
Body interface{} `gorm:"-"` Body interface{} `gorm:"-"`
Issuer string Issuer string