Documentation ¶
Index ¶
- func ConvertEntityInvestorToModel(entity repository.InvestorWithWalletEntity) model.Investor
- func ConvertEntityInvestorsToModel(entity []repository.InvestorWithWalletEntity) []model.Investor
- func ConvertEntityInvoiceToModel(invoice *repository.InvoiceEntity) *model.Invoice
- func ConvertEntityIssuerToModel(issuer *repository.IssuerWithWalletEntity) *model.Issuer
- func ConvertEntityWalletToModel(entity *repository.WalletEntity) *model.Wallet
- func ConvertModelInvestorToEntity(investor *model.Investor) *repository.InvestorEntity
- func ConvertModelInvoiceToEntity(invoice *model.Invoice) *repository.InvoiceEntity
- func ConvertModelIssuerToEntity(issuer *model.Issuer) *repository.IssuerEntity
- func ConvertModelWalletToEntity(refID uuid.UUID, wallet *model.Wallet) *repository.WalletEntity
- type Bid
- type Investor
- type Invoice
- type Issuer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertEntityInvestorToModel ¶
func ConvertEntityInvestorToModel(entity repository.InvestorWithWalletEntity) model.Investor
ConvertEntityInvestorToModel returns model Investor for a given repository InvestorWithWalletEntity
func ConvertEntityInvestorsToModel ¶
func ConvertEntityInvestorsToModel(entity []repository.InvestorWithWalletEntity) []model.Investor
ConvertEntityInvestorsToModel returns list of model Investor for a given list of repository InvestorWithWalletEntity
func ConvertEntityInvoiceToModel ¶
func ConvertEntityInvoiceToModel(invoice *repository.InvoiceEntity) *model.Invoice
ConvertEntityInvoiceToModel returns model Invoice for a given repository InvoiceEntity
func ConvertEntityIssuerToModel ¶
func ConvertEntityIssuerToModel(issuer *repository.IssuerWithWalletEntity) *model.Issuer
ConvertEntityIssuerToModel returns model Issuer for a given repository IssuerWithWalletEntity
func ConvertEntityWalletToModel ¶
func ConvertEntityWalletToModel(entity *repository.WalletEntity) *model.Wallet
ConvertEntityWalletToModel returns model Wallet for a given repository WalletEntity
func ConvertModelInvestorToEntity ¶
func ConvertModelInvestorToEntity(investor *model.Investor) *repository.InvestorEntity
ConvertModelInvestorToEntity returns repository InvestorEntity for a given Investor model
func ConvertModelInvoiceToEntity ¶
func ConvertModelInvoiceToEntity(invoice *model.Invoice) *repository.InvoiceEntity
ConvertModelInvoiceToEntity returns repository InvoiceEntity for a given Invoice model
func ConvertModelIssuerToEntity ¶
func ConvertModelIssuerToEntity(issuer *model.Issuer) *repository.IssuerEntity
ConvertModelIssuerToEntity returns repository IssuerEntity for a given Issuer model
func ConvertModelWalletToEntity ¶
func ConvertModelWalletToEntity(refID uuid.UUID, wallet *model.Wallet) *repository.WalletEntity
ConvertModelWalletToEntity returns repository WalletEntity for a given Wallet model
Types ¶
type Investor ¶
type Investor interface { Create(ctx context.Context, investor *model.Investor) (*model.Investor, error) Get(ctx context.Context, id uuid.UUID) (*model.Investor, error) GetAll(ctx context.Context, paging *model.Paging) ([]model.Investor, error) }
Investor is a interface that contains the methods for the investor services
type Invoice ¶
type Invoice interface { Create(ctx context.Context, invoice *model.Invoice) (*model.Invoice, error) Get(ctx context.Context, id uuid.UUID) (*model.Invoice, error) Approve(ctx context.Context, id uuid.UUID) error }
Invoice is a interface that contains the methods for the invoice services