Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IUserService ¶
type IUserService interface {
Create(types.CreateUserRequest) (models.User, error)
Read(context.Context, types.ReadUserRequest) (types.PaginatorResponse, error)
Update(types.UpdateUserRequest) error
Delete(string) error
}
type UserService ¶
type UserService struct {
UserRepository repositories.IUserRepository
}
func NewUserService ¶
func NewUserService(userRepository repositories.IUserRepository) *UserService
func (*UserService) Create ¶
func (s *UserService) Create(req types.CreateUserRequest) (models.User, error)
func (*UserService) Delete ¶
func (s *UserService) Delete(id string) error
func (*UserService) Read ¶
func (s *UserService) Read(ctx context.Context, req types.ReadUserRequest) (types.PaginatorResponse, error)
func (*UserService) Update ¶
func (s *UserService) Update(req types.UpdateUserRequest) error
Click to show internal directories.
Click to hide internal directories.