repository

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountRepository

type AccountRepository interface {
	component.Repository
	GetByUserName(ctx context.Context, username string) (*model.Account, error)
	GetList(ctx context.Context) ([]*model.Account, error)
	Update(ctx context.Context, account *model.Account) (*model.Account, error)
}

type AccountRepositoryImpl added in v1.3.7

type AccountRepositoryImpl struct {
	bean.Component
	DB *gorm.DB `db:"datasource"`
}

func (*AccountRepositoryImpl) GetByUserName added in v1.3.7

func (r *AccountRepositoryImpl) GetByUserName(ctx context.Context, username string) (*model.Account, error)

func (*AccountRepositoryImpl) GetList added in v1.3.7

func (r *AccountRepositoryImpl) GetList(ctx context.Context) ([]*model.Account, error)

func (*AccountRepositoryImpl) Repository added in v1.3.7

func (r *AccountRepositoryImpl) Repository() string

func (*AccountRepositoryImpl) Update added in v1.3.7

func (r *AccountRepositoryImpl) Update(ctx context.Context, account *model.Account) (*model.Account, error)

Jump to

Keyboard shortcuts

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