user

package
v0.0.0-...-cd133ac Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 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 UserInterface

type UserInterface interface {
	Get(userId int) (entities.User, error)
	Create(newUser entities.User) (entities.User, error)
	GetByAccount(account string) (entities.User, error)
}

type UserRepository

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

func NewUsersRepo

func NewUsersRepo(db *gorm.DB) *UserRepository

func (*UserRepository) Create

func (ur *UserRepository) Create(newUser entities.User) (entities.User, error)

func (*UserRepository) Get

func (ur *UserRepository) Get(userId int) (entities.User, error)

func (*UserRepository) GetByAccount

func (ur *UserRepository) GetByAccount(account string) (entities.User, error)

Jump to

Keyboard shortcuts

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