interfaces

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 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 IBillRepository

type IBillRepository interface {
	Create(billAggregation *entities.BillAggregation, executor gorp.SqlExecutor) (savedId int, err error)
	GetById(id int, executor gorp.SqlExecutor) (aggregation *entities.BillAggregation, err error)
	GetByUserId(userId int, executor gorp.SqlExecutor) (aggregation []*entities.BillAggregation, err error)
}

type IContractRepository

type IContractRepository interface {
	Create(contractEntity *entities.ContractEntity, executor gorp.SqlExecutor) (savedId int, err error)
	GetById(id int, executor gorp.SqlExecutor) (contract *entities.ContractEntity, product *entities.ProductEntity, user interface{}, err error)
}

type IProductRepository

type IProductRepository interface {
	Save(productEntity *entities.ProductEntity, executor gorp.SqlExecutor) (savedId int, err error)
	GetById(id int, executor gorp.SqlExecutor) (*entities.ProductEntity, error)
	GetByName(name string, executor gorp.SqlExecutor) (*entities.ProductEntity, error)
	GetByRightToUseId(rightToUseId int, executor gorp.SqlExecutor) (*entities.ProductEntity, error)
}

type IRightToUseRepository

type IRightToUseRepository interface {
	Create(rightToUseEntity *entities.RightToUseEntity, executor gorp.SqlExecutor) (savedId int, err error)
	GetById(id int, executor gorp.SqlExecutor) (*entities.RightToUseEntity, error)
	GetBillingTargetByBillingDate(billingDate time.Time, executor gorp.SqlExecutor) ([]*entities.RightToUseEntity, error)
	GetRecurTargets(executeDate time.Time, executor gorp.SqlExecutor) ([]*entities.RightToUseEntity, error)
}

type IUserRepository

type IUserRepository interface {
	GetUserById(id int, executor gorp.SqlExecutor) (interface{}, error)

	SaveUserIndividual(userEntity *entities.UserIndividualEntity, executor gorp.SqlExecutor) (savedId int, err error)
	GetUserIndividualById(id int, executor gorp.SqlExecutor) (*entities.UserIndividualEntity, error)

	SaveUserCorporation(userEntity *entities.UserCorporationEntity, executor gorp.SqlExecutor) (savedId int, err error)
	GetUserCorporationById(id int, executor gorp.SqlExecutor) (*entities.UserCorporationEntity, error)
}

Directories

Path Synopsis
Package mock_interfaces is a generated GoMock package.
Package mock_interfaces is a generated GoMock package.

Jump to

Keyboard shortcuts

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