Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type AccountRepository ¶
type AccountRepository struct {
// contains filtered or unexported fields
}
func (*AccountRepository) Create ¶
func (a *AccountRepository) Create(account *Account) error
type AccountService ¶
type AccountService struct {
// contains filtered or unexported fields
}
type IAccountRepository ¶
func NewAccountRepository ¶
func NewAccountRepository(db *gorm.DB) IAccountRepository
type IAccountService ¶
type IAccountService interface { Find(id int) (*Account, error) Create(account *Account) (*Account, error) }
func NewAccountService ¶
func NewAccountService(repo IAccountRepository) IAccountService
Click to show internal directories.
Click to hide internal directories.