Documentation ¶
Index ¶
- type UserService
- func (s *UserService) Create(ctx context.Context, user *models.User) error
- func (s *UserService) Delete(ctx context.Context, id primitive.ObjectID) error
- func (s *UserService) FindOne(ctx context.Context, filter interface{}) (*models.User, error)
- func (s *UserService) GetAll(ctx context.Context) ([]models.User, error)
- func (s *UserService) GetByID(ctx context.Context, id primitive.ObjectID) (*models.User, error)
- func (s *UserService) Update(ctx context.Context, user *models.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(repo *repositories.UserRepository) *UserService
Click to show internal directories.
Click to hide internal directories.