Documentation ¶
Index ¶
- type UsersService
- type UsersServiceImpl
- func (b *UsersServiceImpl) ApplyLeave(ctx context.Context, leave models.Leave) (interface{}, error)
- func (b *UsersServiceImpl) GetLeaves(ctx context.Context, id int) (resp models.GetAllLeavesResponse, err error)
- func (b *UsersServiceImpl) GetLeavesByStatus(ctx context.Context, id int, status string) (resp models.GetAllLeavesResponse, err error)
- func (b *UsersServiceImpl) Login(ctx context.Context, user models.UserLoginRequest) (resp models.UserLoginResponse, err error)
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 ¶
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 ¶
func (b *UsersServiceImpl) Login(ctx context.Context, user models.UserLoginRequest) (resp models.UserLoginResponse, err error)
Login **
Click to show internal directories.
Click to hide internal directories.