repo

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserNotFound = errors.New("user not found")
	ErrUserExists   = errors.New("user already exists")
)

Functions

This section is empty.

Types

type UserRepo

type UserRepo struct {
	// contains filtered or unexported fields
}

func NewUserRepo

func NewUserRepo(db *sqlx.DB, placeHolder sq.PlaceholderFormat) *UserRepo

func (*UserRepo) DeleteUser

func (r *UserRepo) DeleteUser(
	ctx context.Context, id string,
) error

func (*UserRepo) SaveUser

func (r *UserRepo) SaveUser(
	ctx context.Context, user model.User,
) (string, error)

func (*UserRepo) UpdateUser

func (r *UserRepo) UpdateUser(
	ctx context.Context, user entity.UserMap,
) error

func (*UserRepo) User added in v1.2.0

func (r *UserRepo) User(
	ctx context.Context, params vo.UserParams,
) (*model.User, error)

Jump to

Keyboard shortcuts

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