accountcompany

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCompany

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

func (*AccountCompany) CreateAccountCompany

func (a *AccountCompany) CreateAccountCompany(companyID, accountID uuid.UUID,
	role accountEnums.Role, tx SQL.InterfaceWrite) error

func (*AccountCompany) DeleteAccountCompany

func (a *AccountCompany) DeleteAccountCompany(accountID, companyID uuid.UUID) error

func (*AccountCompany) GetAccountCompany

func (a *AccountCompany) GetAccountCompany(accountID, companyID uuid.UUID) (
	*roles.AccountCompany, error)

func (*AccountCompany) UpdateAccountCompany

func (a *AccountCompany) UpdateAccountCompany(accountCompany *roles.AccountCompany) error

type IAccountCompany

type IAccountCompany interface {
	CreateAccountCompany(companyID, accountID uuid.UUID, role accountEnums.Role, tx SQL.InterfaceWrite) error
	GetAccountCompany(accountID, companyID uuid.UUID) (*roles.AccountCompany, error)
	UpdateAccountCompany(role *roles.AccountCompany) error
	DeleteAccountCompany(accountID, companyID uuid.UUID) error
}

func NewAccountCompanyRepository

func NewAccountCompanyRepository(databaseRead SQL.InterfaceRead, databaseWrite SQL.InterfaceWrite) IAccountCompany

Jump to

Keyboard shortcuts

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