feat: add history helper

master
Evan Chen 2021-12-16 23:59:16 +08:00
parent ae12649984
commit 56fbea1b6b
2 changed files with 5 additions and 0 deletions

View File

@ -38,3 +38,7 @@ func (h *History) Iss(issuer string) *History {
h.Issuer = issuer
return h
}
func (h *History) Grp(grp string) *History {
h.Group = grp
return h
}

View File

@ -29,6 +29,7 @@ type History struct {
Message string
Body interface{} `gorm:"-"`
Issuer string
Group string
BodyJson string
}