Documentation ¶
Index ¶
- type UserService
- type UserServiceImpl
- func (u *UserServiceImpl) Create(user request.CreateUserRequest) response.Response
- func (u *UserServiceImpl) Delete(UserId string) response.Response
- func (u *UserServiceImpl) FindAll() response.Response
- func (u *UserServiceImpl) FindById(UserId string) response.Response
- func (u *UserServiceImpl) Update(user request.UpdateUserRequest) response.Response
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 ¶
func (u *UserServiceImpl) Create(user request.CreateUserRequest) response.Response
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 ¶
func (u *UserServiceImpl) Update(user request.UpdateUserRequest) response.Response
Update implements UserService.
Click to show internal directories.
Click to hide internal directories.