Documentation
¶
Index ¶
- func ConnectDatabase()
- type Account
- type AccountModel
- type CRUDModel
- type CostCenter
- type CostCenterModel
- func (*CostCenterModel) Create(newItem *CostCenter)
- func (*CostCenterModel) Delete(id []*CostCenter)
- func (*CostCenterModel) GetList(sort []string, itemRange []int, filters map[string]interface{}) []CostCenter
- func (*CostCenterModel) GetSingleItem(key int64) (*CostCenter, error)
- func (*CostCenterModel) TotalCount() int64
- type Provider
- type ProviderModel
- func (*ProviderModel) Create(newItem *Provider)
- func (*ProviderModel) Delete(id []*Provider)
- func (*ProviderModel) GetList(sort []string, itemRange []int, filters map[string]interface{}) []Provider
- func (*ProviderModel) GetSingleItem(key int64) (*Provider, error)
- func (*ProviderModel) TotalCount() int64
- type Transaction
- type TransactionInput
- type TransactionModel
- func (*TransactionModel) Create(newtx *Transaction)
- func (*TransactionModel) Delete(id []*Transaction)
- func (*TransactionModel) GetList(sort []string, itemRange []int, filters map[string]interface{}) []Transaction
- func (*TransactionModel) GetSingleItem(id int64) (*Transaction, error)
- func (*TransactionModel) TotalCount() int64
- type TransactionOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectDatabase ¶
func ConnectDatabase()
Types ¶
type AccountModel ¶
type AccountModel struct{}
func (*AccountModel) Create ¶
func (*AccountModel) Create(newItem *Account)
func (*AccountModel) Delete ¶
func (*AccountModel) Delete(id []*Account)
func (*AccountModel) GetList ¶
func (*AccountModel) GetList(sort []string, itemRange []int, filters map[string]interface{}) []Account
func (*AccountModel) GetSingleItem ¶
func (*AccountModel) GetSingleItem(key int64) (*Account, error)
func (*AccountModel) TotalCount ¶
func (*AccountModel) TotalCount() int64
type CostCenter ¶
type CostCenterModel ¶
type CostCenterModel struct{}
func (*CostCenterModel) Create ¶
func (*CostCenterModel) Create(newItem *CostCenter)
func (*CostCenterModel) Delete ¶
func (*CostCenterModel) Delete(id []*CostCenter)
func (*CostCenterModel) GetList ¶
func (*CostCenterModel) GetList(sort []string, itemRange []int, filters map[string]interface{}) []CostCenter
func (*CostCenterModel) GetSingleItem ¶
func (*CostCenterModel) GetSingleItem(key int64) (*CostCenter, error)
func (*CostCenterModel) TotalCount ¶
func (*CostCenterModel) TotalCount() int64
type ProviderModel ¶
type ProviderModel struct{}
func (*ProviderModel) Create ¶
func (*ProviderModel) Create(newItem *Provider)
func (*ProviderModel) Delete ¶
func (*ProviderModel) Delete(id []*Provider)
func (*ProviderModel) GetList ¶
func (*ProviderModel) GetList(sort []string, itemRange []int, filters map[string]interface{}) []Provider
func (*ProviderModel) GetSingleItem ¶
func (*ProviderModel) GetSingleItem(key int64) (*Provider, error)
func (*ProviderModel) TotalCount ¶
func (*ProviderModel) TotalCount() int64
type Transaction ¶
type Transaction struct { ID int64 `json:"id"` Date string `json:"date"` ProviderID int64 Provider *Provider `json:"provider"` Description string `json:"description"` Amount int64 `json:"amount"` CostCenterID int64 CostCenter *CostCenter `json:"cost_center"` AccountID int64 Account *Account `json:"account"` }
album represents data about a record album.
type TransactionInput ¶
type TransactionInput struct { ID int64 `json:"id"` Date string `json:"date"` Provider int64 `json:"provider"` Description string `json:"description"` Amount int64 `json:"amount"` CostCenter int64 `json:"cost_center"` Account int64 `json:"account"` }
album represents data about a record album.
type TransactionModel ¶
type TransactionModel struct{}
func (*TransactionModel) Create ¶
func (*TransactionModel) Create(newtx *Transaction)
func (*TransactionModel) Delete ¶
func (*TransactionModel) Delete(id []*Transaction)
func (*TransactionModel) GetList ¶
func (*TransactionModel) GetList(sort []string, itemRange []int, filters map[string]interface{}) []Transaction
func (*TransactionModel) GetSingleItem ¶
func (*TransactionModel) GetSingleItem(id int64) (*Transaction, error)
func (*TransactionModel) TotalCount ¶
func (*TransactionModel) TotalCount() int64
type TransactionOutput ¶
type TransactionOutput struct { ID int64 `json:"id"` Date string `json:"date"` Provider int64 `json:"provider"` Description string `json:"description"` Amount int64 `json:"amount"` CostCenter int64 `json:"cost_center"` Account int64 `json:"account"` }
album represents data about a record album.
func Flatten ¶
func Flatten(transaction *Transaction) TransactionOutput
Click to show internal directories.
Click to hide internal directories.