service

package
v0.0.0-...-c7ab869 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmployeeService

type EmployeeService struct {
	EmployeeResource resource.IEmployeeResource
}

func (*EmployeeService) CreateEmployee

func (s *EmployeeService) CreateEmployee(payload *input.CreateEmployeeDTO) error

func (*EmployeeService) DeleteEmployee

func (s *EmployeeService) DeleteEmployee(payload *input.DeleteEmployeeDTO) error

func (*EmployeeService) GetEmployee

func (s *EmployeeService) GetEmployee(payload *input.GetEmployeeDTO) (output.GetEmployeeDTO, error)

func (*EmployeeService) GetListEmployee

func (*EmployeeService) UpdateEmployee

func (s *EmployeeService) UpdateEmployee(payload *input.UpdateEmployeeDTO) error

type IEmployeeService

type IEmployeeService interface {
	CreateEmployee(payload *input.CreateEmployeeDTO) error
	UpdateEmployee(payload *input.UpdateEmployeeDTO) error
	DeleteEmployee(payload *input.DeleteEmployeeDTO) error
	GetListEmployee(payload *input.GetListEmployeeDTO) (output.GetListEmployeeDTO, *pkg_types.Meta, error)
	GetEmployee(payload *input.GetEmployeeDTO) (output.GetEmployeeDTO, error)
}

func InitEmployeeService

func InitEmployeeService(employeeResource resource.IEmployeeResource) IEmployeeService

Directories

Path Synopsis
dto

Jump to

Keyboard shortcuts

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