Documentation ¶
Index ¶
- func NewSqlite3DB(cfg Config) (*sqlx.DB, error)
- type Account
- func (r *Account) CreateAccount(account domain.Account) error
- func (r *Account) DeleteAccount(accountPublicId uuid.UUID) error
- func (r *Account) GetByCredentials(email, password string) (domain.Account, error)
- func (r *Account) UpdateAccountInfo(input domain.UpdateAccountInput) error
- func (r *Account) UpdateAccountRole(input domain.UpdateAccountRoleInput) error
- type Accounter
- type Config
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func NewAccount ¶
func (*Account) GetByCredentials ¶
func (*Account) UpdateAccountInfo ¶
func (r *Account) UpdateAccountInfo(input domain.UpdateAccountInput) error
func (*Account) UpdateAccountRole ¶
func (r *Account) UpdateAccountRole(input domain.UpdateAccountRoleInput) error
type Accounter ¶
type Accounter interface { CreateAccount(account domain.Account) error UpdateAccountInfo(input domain.UpdateAccountInput) error UpdateAccountRole(input domain.UpdateAccountRoleInput) error DeleteAccount(accountPublicId uuid.UUID) error GetByCredentials(email, password string) (domain.Account, error) }
Click to show internal directories.
Click to hide internal directories.