2018-03-28 01:29:06 +02:00
|
|
|
package model
|
|
|
|
|
2018-04-03 22:11:59 +02:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/globalsign/mgo/bson"
|
|
|
|
)
|
2018-03-28 01:29:06 +02:00
|
|
|
|
|
|
|
type Data struct {
|
|
|
|
Id bson.ObjectId `bson:"_id,omitempty" json:"id"`
|
|
|
|
Name string `bson:"name" json:"name"`
|
|
|
|
Address string `bson:"address" json:"address"`
|
|
|
|
Location string `bson:"location" json:"location"`
|
|
|
|
Age float64 `bson:"age,omitempty" json:"age,omitempty"`
|
|
|
|
Price float64 `bson:"price,omitempty" json:"price,omitempty"`
|
2018-04-03 22:11:59 +02:00
|
|
|
When time.Time `bson:"when" json:"when"`
|
2018-03-28 01:29:06 +02:00
|
|
|
}
|