userservice

package
v0.0.0-...-aa00036 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 11 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 struct {
	Collection string // user
	Fw         *framework.Framework
}

check user.route

func (UserService) CheckByEmailAddress

func (uSrv UserService) CheckByEmailAddress(email string) (bool, *usermodel.UserModel)

Check if user exists by given email address

func (*UserService) CreateNewUser

func (uSrv *UserService) CreateNewUser(ctx context.Context, user usermodel.UserModel) (interface{}, bool)

Creeate a new user

func (UserService) DeleteUserById

func (uSrv UserService) DeleteUserById(data *usermodel.UserDeleteModel) bool

Delete user by id

func (UserService) FetchAll

Fetch all records

func (UserService) GetUserByEmailAddress

func (uSrv UserService) GetUserByEmailAddress(email string) (bool, *usermodel.UserModel)

Get user by email address

func (UserService) GetUserByEmailAndPassword

func (uSrv UserService) GetUserByEmailAndPassword(email string, password string) (*usermodel.UserModel, bool)

Check if user exists by given email address and password

func (UserService) GetUserById

func (uSrv UserService) GetUserById(id string) (*usermodel.UserModel, bool)

Check if user exists by given email address

func (*UserService) UpdateUserInformations

func (uSrv *UserService) UpdateUserInformations(user *usermodel.UserUpdateModel, userId string) (bool, int64)

Creeate a new user

Jump to

Keyboard shortcuts

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