user

package
v0.0.0-...-0601c6c Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	FindByGroup(ctx context.Context, id uint64) ([]models.User, error)
	Create(ctx context.Context, dto dto.User) (models.User, error)
	Delete(context.Context, uint64) error
}

type Repository

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

func New

func New(db *gorm.DB, logger *log.Logger, roleRepo role.Interface) Repository

func (Repository) Create

func (r Repository) Create(ctx context.Context, dto dto.User) (models.User, error)

func (Repository) Delete

func (r Repository) Delete(ctx context.Context, id uint64) error

func (Repository) FindByGroup

func (r Repository) FindByGroup(ctx context.Context, id uint64) ([]models.User, error)

Jump to

Keyboard shortcuts

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