15 lines
246 B
Go
15 lines
246 B
Go
|
package model
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"gopkg.in/mgo.v2/bson"
|
||
|
)
|
||
|
|
||
|
type Post struct {
|
||
|
Id bson.ObjectId `bson:"_id,omitempty" json:"id"`
|
||
|
Date time.Time `json:"date"`
|
||
|
Amount float64 `json:"amount"`
|
||
|
Note string `json:"note"`
|
||
|
}
|