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
}
func (h *History) Nm(name string) *History {
h.Name = name
return h
}
func (h *History) Msg(msg string) *History {
h.Message = msg
return h

View File

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