Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transaction ¶
type Transaction struct { Id string `json:"id" bson:"_id"` Amount int32 `json:"amount" bson:"amount"` From *users.User `omitempty,json:"from" bson:"from"` To *users.User `omitempty,json:"to" bson:"to"` For string `omitempty,json:"for" bson:"for"` Holder *users.User `json:"holder" bson:"holder"` Notes string `json:"notes" bson:"notes"` }
func List ¶
func List() ([]*Transaction, error)
func New ¶
func New(body map[string]interface{}) (*Transaction, error)
func (*Transaction) Save ¶
func (t *Transaction) Save() error
Click to show internal directories.
Click to hide internal directories.