operations

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IOperationTypeRepository

type IOperationTypeRepository interface {
	Create(operationType *OperationType) error
	Find(id int) (*OperationType, error)
}

func NewOperationTypeRepository

func NewOperationTypeRepository(db *gorm.DB) IOperationTypeRepository

type OperationType

type OperationType struct {
	ID          int    `gorm:"primaryKey"`
	Description string `json:"description" gorm:"not null;type:varchar(50)"`
	IsDebit     bool   `json:"is_debit" gorm:"not null;column:debit"`
}

func (OperationType) TableName

func (OperationType) TableName() string

type OperationTypeRepository

type OperationTypeRepository struct {
	// contains filtered or unexported fields
}

func (*OperationTypeRepository) Create

func (o *OperationTypeRepository) Create(operationType *OperationType) error

func (*OperationTypeRepository) Find

Jump to

Keyboard shortcuts

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