Documentation
¶
Index ¶
- Constants
- type CategoryDAO
- type MessageContextDAO
- type StatDAO
- type TransactionDAO
- func (dao TransactionDAO) CountListByMonthAndYear(ctx context.Context, dateFrom time.Time, dateTo time.Time, userId int64) (int, error)
- func (dao TransactionDAO) DeleteById(ctx context.Context, id int, userId int64) error
- func (dao TransactionDAO) FindLatestByUserId(ctx context.Context, userId int64) (*entity.Transaction, error)
- func (dao TransactionDAO) GetBreakdownByCategory(ctx context.Context, dateFrom time.Time, dateTo time.Time, userId int64) ([]entity.TransactionBreakdown, error)
- func (dao TransactionDAO) GetById(ctx context.Context, id int, userId int64) (entity.Transaction, error)
- func (dao TransactionDAO) Insert(ctx context.Context, transaction entity.Transaction) error
- func (dao TransactionDAO) ListByMonthAndYear(ctx context.Context, dateFrom time.Time, dateTo time.Time, offset int, ...) ([]entity.Transaction, error)
- type TransactionTypeDAO
- type UserDAO
Constants ¶
View Source
const ( ASC = "ASC" DESC = "DESC" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryDAO ¶
type CategoryDAO struct {
// contains filtered or unexported fields
}
func NewCategoryDAO ¶
func NewCategoryDAO(db *pgxpool.Pool) CategoryDAO
func (CategoryDAO) FindByTransactionTypeId ¶
type MessageContextDAO ¶
type MessageContextDAO struct {
// contains filtered or unexported fields
}
func NewMessageContextDao ¶
func NewMessageContextDao(db *pgxpool.Pool) MessageContextDAO
func (MessageContextDAO) DeleteById ¶
func (dao MessageContextDAO) DeleteById(ctx context.Context, id int) error
func (MessageContextDAO) GetById ¶
func (dao MessageContextDAO) GetById(ctx context.Context, id int) (*entity.MessageContext, error)
func (MessageContextDAO) Insert ¶
func (dao MessageContextDAO) Insert(ctx context.Context, messageContext entity.MessageContext) (int, error)
type TransactionDAO ¶
type TransactionDAO struct {
// contains filtered or unexported fields
}
func NewTransactionDao ¶
func NewTransactionDao(db *pgxpool.Pool) TransactionDAO
func (TransactionDAO) CountListByMonthAndYear ¶
func (TransactionDAO) DeleteById ¶
func (TransactionDAO) FindLatestByUserId ¶
func (dao TransactionDAO) FindLatestByUserId(ctx context.Context, userId int64) (*entity.Transaction, error)
func (TransactionDAO) GetBreakdownByCategory ¶
func (TransactionDAO) GetById ¶
func (dao TransactionDAO) GetById(ctx context.Context, id int, userId int64) (entity.Transaction, error)
func (TransactionDAO) Insert ¶
func (dao TransactionDAO) Insert(ctx context.Context, transaction entity.Transaction) error
type TransactionTypeDAO ¶
type TransactionTypeDAO struct {
// contains filtered or unexported fields
}
func NewTransactionTypeDAO ¶
func NewTransactionTypeDAO(db *pgxpool.Pool) TransactionTypeDAO
func (TransactionTypeDAO) GetAll ¶
func (dao TransactionTypeDAO) GetAll(ctx context.Context) ([]*entity.TransactionType, error)
func (TransactionTypeDAO) GetById ¶
func (dao TransactionTypeDAO) GetById(ctx context.Context, id int) (*entity.TransactionType, error)
type UserDAO ¶
type UserDAO struct {
// contains filtered or unexported fields
}
func NewUserDao ¶
func (UserDAO) FindUserById ¶
Click to show internal directories.
Click to hide internal directories.