service

package
v0.0.0-...-c7413e9 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserConfigService

type UserConfigService interface {
	UpdateUserConfig(userConfig *model.UserConfiguration) error
	GetUserConfig() (userConfig *model.UserConfiguration, err error)
	ValidateUser(user *model.User, isAdminCreation bool) error
}

func NewUserConfigService

func NewUserConfigService(configRepository repository.UsersConfigRepository) UserConfigService

type UserService

type UserService interface {
	CreateUser(user *model.User) error
	GetUserById(id string) (*model.User, error)
	GetAllUsersByPage(page int, size int) (*model.UserPage, error)
	UpdateUser(user *model.User) (*model.User, error)
	RemoveUserById(id string) error
}

func NewUserService

func NewUserService(usersRepository repository.UsersRepository, configRepository repository.UsersConfigRepository) UserService

Jump to

Keyboard shortcuts

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