initial
This commit is contained in:
commit
02f372bc85
8 changed files with 1018 additions and 0 deletions
12
model/data.go
Normal file
12
model/data.go
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package model
|
||||
|
||||
import "github.com/globalsign/mgo/bson"
|
||||
|
||||
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"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue