user_repo

package
v0.0.0-...-60a76ff Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo interface {
	GetUserByID(id uint) (*user.User, error)
	GetUsers() ([]*user.User, error)
	GetUserByEmail(email string) (*user.User, error)
	CreateUser(user *user.User) error
	Update(user *user.User) error
}

Repository interface

func NewUserRepo

func NewUserRepo(db *gorm.DB) Repo

New user repo instance

Jump to

Keyboard shortcuts

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