repositories

package
v0.0.0-...-0686fb6 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepo

type UserRepo interface {
	Create(ctx context.Context, db *gorm.DB, user *models.User) (err error)
	Delete(ctx context.Context, db *gorm.DB, userID uint) (err error)
	GetByEmail(ctx context.Context, email string) (user *models.User, err error)
	GetByUsername(ctx context.Context, username string) (user *models.User, err error)
	Update(ctx context.Context, db *gorm.DB, user *models.User) (err error)
}

func NewUserRepo

func NewUserRepo(db *gorm.DB) UserRepo

Jump to

Keyboard shortcuts

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