manager

package
v0.0.0-...-e60ee39 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// Create user
	Create(ctx context.Context, user *models.User) (*models.User, error)
	List(ctx context.Context, query *q.Query) (int64, []*models.User, error)
	GetUserByIDP(ctx context.Context, email string, idp string) (*models.User, error)
	GetUserByID(ctx context.Context, userID uint) (*models.User, error)
	GetUserByIDs(ctx context.Context, userIDs []uint) ([]*models.User, error)
	GetUserMapByIDs(ctx context.Context, userIDs []uint) (map[uint]*models.User, error)
	ListByEmail(ctx context.Context, emails []string) ([]*models.User, error)
	UpdateByID(ctx context.Context, id uint, db *models.User) (*models.User, error)
	DeleteUser(ctx context.Context, id uint) error
}

func New

func New(db *gorm.DB) Manager

Jump to

Keyboard shortcuts

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