adminrepo

package
v0.0.0-...-4e2b7d2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdminRepoProvider = wire.NewSet(
	NewUserRepo,
)

Functions

This section is empty.

Types

type ProductRepo

type ProductRepo interface {
	Create(ctx context.Context, model *adminmodel.Product) error
}

func NewProductRepo

func NewProductRepo(data *data.Data) ProductRepo

type UserRepo

type UserRepo interface {
	Create(ctx context.Context, model *adminmodel.User) error
	FindByLoginName(ctx context.Context, loginName string) (result *adminmodel.User, has bool, err error)
	FindByEmail(ctx context.Context, email string) (result *adminmodel.User, has bool, err error)
	FindById(ctx context.Context, userId int) (result *adminmodel.User, has bool, err error)
	Update(ctx context.Context, model *adminmodel.User) error
}

func NewUserRepo

func NewUserRepo(data *data.Data) UserRepo

Jump to

Keyboard shortcuts

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