package models import ( ruisUtil "github.com/mgr9525/go-ruisutil" "go.mongodb.org/mongo-driver/bson/primitive" "time" ) type MgoParam struct { Id primitive.ObjectID `bson:"_id"` Key string Title string Value map[string]interface{} Times time.Time } func (c *MgoParam) Map() *ruisUtil.Map { return ruisUtil.NewMapo(c.Value) }