user

package
v0.0.0-...-ce79110 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 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 Service

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

func New

func New(
	user userRepo,
) *Service

func (*Service) CreateUser

func (s *Service) CreateUser(ctx context.Context, user user.UserForCreate) (string, error)

func (*Service) DeleteUser

func (s *Service) DeleteUser(ctx context.Context, userID string) (string, error)

func (*Service) ListAllUsers

func (s *Service) ListAllUsers(ctx context.Context, params *postgresutils.PageRequest) (postgresutils.Page[user.User], error)

func (*Service) UpdateUser

func (s *Service) UpdateUser(ctx context.Context, userID string, updatedUser user.UserForUpdate) error

Jump to

Keyboard shortcuts

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