You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
342 B

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)
}