userservice

package
v0.0.0-...-b5756a5 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 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 UserService

type UserService interface {
	Create(user request.CreateUserRequest) response.Response
	Update(user request.UpdateUserRequest) response.Response
	Delete(UserId string) response.Response
	FindById(UserId string) response.Response
	FindAll() response.Response
}

func NewUserServiceImpl

func NewUserServiceImpl(userRepository userrepository.UserRepository, validate *validator.Validate) UserService

type UserServiceImpl

type UserServiceImpl struct {
	UserRepo userrepository.UserRepository
	// contains filtered or unexported fields
}

func (*UserServiceImpl) Create

Create implements UserService.

func (*UserServiceImpl) Delete

func (u *UserServiceImpl) Delete(UserId string) response.Response

Delete implements UserService.

func (*UserServiceImpl) FindAll

func (u *UserServiceImpl) FindAll() response.Response

FindAll implements UserService.

func (*UserServiceImpl) FindById

func (u *UserServiceImpl) FindById(UserId string) response.Response

FindById implements UserService.

func (*UserServiceImpl) Update

Update implements UserService.

Jump to

Keyboard shortcuts

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