Versions in this module Expand all Collapse all v1 v1.0.0 Sep 24, 2020 Changes in this version + type Account struct + Document string + func (Account) TableName() string + type AccountRepository struct + func (a *AccountRepository) Create(account *Account) error + func (a *AccountRepository) Find(id int) (*Account, error) + type AccountService struct + func (a *AccountService) Create(account *Account) (*Account, error) + func (a *AccountService) Find(id int) (*Account, error) + type IAccountRepository interface + Create func(account *Account) error + Find func(id int) (*Account, error) + func NewAccountRepository(db *gorm.DB) IAccountRepository + type IAccountService interface + Create func(account *Account) (*Account, error) + Find func(id int) (*Account, error) + func NewAccountService(repo IAccountRepository) IAccountService