Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService struct {
*mongo.Collection
}
func ProvideUserService ¶
func ProvideUserService(db *mongo.Database) UserService
func (*UserService) CreateNewUser ¶
func (service *UserService) CreateNewUser(user dto.InsertUser) (*models.User, error)
func (*UserService) GetUserByEmail ¶
func (service *UserService) GetUserByEmail(email string) (*models.User, error)
Click to show internal directories.
Click to hide internal directories.