repositories

package
v0.0.0-...-10548b9 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

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

func NewUserRepository

func NewUserRepository(db *conn.DB) *UserRepository

func (*UserRepository) Create

func (repo *UserRepository) Create(user *models.User) (*models.User, error)

func (*UserRepository) GetAll

func (repo *UserRepository) GetAll() ([]*models.User, error)

func (*UserRepository) GetUserById

func (repo *UserRepository) GetUserById(id int32) (*models.User, error)

Jump to

Keyboard shortcuts

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