Documentation ¶
Index ¶
- type AccountRepository
- type AccountRepositoryImpl
- func (r *AccountRepositoryImpl) GetByUserName(ctx context.Context, username string) (*model.Account, error)
- func (r *AccountRepositoryImpl) GetList(ctx context.Context) ([]*model.Account, error)
- func (r *AccountRepositoryImpl) Update(ctx context.Context, account *model.Account) (*model.Account, error)
- type Factory
- type FactoryImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountRepository ¶
type AccountRepositoryImpl ¶ added in v1.3.7
type AccountRepositoryImpl struct { types.Repository `table:"account"` Mapper *tk.Mapper `wire:"tk_mapper:application.datasource@account"` DB *gorm_plugin.DB `wire:"gorm_db:application.datasource@account"` }
func (*AccountRepositoryImpl) GetByUserName ¶ added in v1.3.7
type Factory ¶ added in v1.4.0
type Factory interface {
GetAccountRepo() AccountRepository
}
type FactoryImpl ¶ added in v1.4.0
type FactoryImpl struct { types.Component `name:"repository_factory"` AccountRepository AccountRepository `wire:""` }
func (*FactoryImpl) GetAccountRepo ¶ added in v1.4.0
func (r *FactoryImpl) GetAccountRepo() AccountRepository
Click to show internal directories.
Click to hide internal directories.