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
316 B
19 lines
316 B
package models
|
|
|
|
import (
|
|
ruisUtil "github.com/mgr9525/go-ruisutil"
|
|
"gopkg.in/mgo.v2/bson"
|
|
"time"
|
|
)
|
|
|
|
type MgoParam struct {
|
|
Id bson.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)
|
|
}
|