services

package
v0.0.0-...-556e172 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsersService

type UsersService interface {
	Login(context.Context, models.UserLoginRequest) (models.UserLoginResponse, error)
	ApplyLeave(ctx context.Context, leave models.Leave) (interface{}, error)
	GetLeaves(context.Context, int) (models.GetAllLeavesResponse, error)
	GetLeavesByStatus(context.Context, int, string) (models.GetAllLeavesResponse, error)
}

UsersService describes the service.

func NewUserServiceImpl

func NewUserServiceImpl(userRepo repository.UserRepository) UsersService

NewUserServiceImpl inject depedancies user repositiory

type UsersServiceImpl

type UsersServiceImpl struct {
	// contains filtered or unexported fields
}

UsersServiceImpl **

func (*UsersServiceImpl) ApplyLeave

func (b *UsersServiceImpl) ApplyLeave(ctx context.Context, leave models.Leave) (interface{}, error)

ApplyLeave **

func (*UsersServiceImpl) GetLeaves

func (b *UsersServiceImpl) GetLeaves(ctx context.Context, id int) (resp models.GetAllLeavesResponse, err error)

GetLeaves **

func (*UsersServiceImpl) GetLeavesByStatus

func (b *UsersServiceImpl) GetLeavesByStatus(ctx context.Context, id int, status string) (resp models.GetAllLeavesResponse, err error)

GetLeavesByStatus **

func (*UsersServiceImpl) Login

Login **

Jump to

Keyboard shortcuts

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