transactions

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL