entity

package
v0.0.0-...-ebdf8ee Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneralFilter

type GeneralFilter struct {
	Id        string
	IsDeleted bool
	Q         string
	Option    GeneralFilterOption
}

type GeneralFilterOption

type GeneralFilterOption struct {
	OrderBy string
	Limit   int
	Offset  int
}

type Transaction

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

func (*Transaction) GetCreatedAt

func (t *Transaction) GetCreatedAt() time.Time

func (*Transaction) GetDescription

func (t *Transaction) GetDescription() string

func (*Transaction) GetId

func (t *Transaction) GetId() string

func (*Transaction) GetIdName

func (t *Transaction) GetIdName() string

func (*Transaction) GetName

func (t *Transaction) GetName() string

func (*Transaction) GetReturnTrans

func (t *Transaction) GetReturnTrans() *bool

func (*Transaction) GetSalesDate

func (t *Transaction) GetSalesDate() *time.Time

func (*Transaction) GetUnit

func (t *Transaction) GetUnit() int

func (*Transaction) GetUpdatedAt

func (t *Transaction) GetUpdatedAt() time.Time

type TransactionDto

type TransactionDto struct {
	Id          string
	IdName      string
	Name        string
	ReturnTrans *bool
	SalesDate   *time.Time
	Unit        int
	Description string
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

func (*TransactionDto) Create

func (dto *TransactionDto) Create() *Transaction

func (*TransactionDto) New

func (dto *TransactionDto) New() *Transaction

func (*TransactionDto) Update

func (dto *TransactionDto) Update(data *TransactionDto) *Transaction

func (*TransactionDto) Validate

func (data *TransactionDto) Validate() error

Jump to

Keyboard shortcuts

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