resource

package
v0.0.0-...-a91912b Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmployeeResource

type EmployeeResource struct {
	EmployeeDatabaseSQLRepository employee.IEmployeeDatabaseSQLRepository
}

func (*EmployeeResource) CountAllEmployee

func (r *EmployeeResource) CountAllEmployee(query *types.Query) (int, error)

func (*EmployeeResource) CreateEmployee

func (r *EmployeeResource) CreateEmployee(payload *sql.Employee) error

func (*EmployeeResource) DeleteEmployee

func (r *EmployeeResource) DeleteEmployee(payload *sql.Employee) error

func (*EmployeeResource) GetEmployee

func (r *EmployeeResource) GetEmployee(query *types.Query) (*sql.Employee, error)

func (*EmployeeResource) GetListEmployeeAndCount

func (r *EmployeeResource) GetListEmployeeAndCount(query *types.Query) ([]*sql.Employee, int, error)

func (*EmployeeResource) UpdateEmployee

func (r *EmployeeResource) UpdateEmployee(payload *sql.Employee) error

type IEmployeeResource

type IEmployeeResource interface {
	CreateEmployee(payload *sql.Employee) error
	UpdateEmployee(payload *sql.Employee) error
	DeleteEmployee(payload *sql.Employee) error
	GetListEmployeeAndCount(query *types.Query) ([]*sql.Employee, int, error)
	GetEmployee(query *types.Query) (*sql.Employee, error)
	CountAllEmployee(query *types.Query) (int, error)
}

func InitEmployeeResource

func InitEmployeeResource(employeeDatabaseSQLRepository employee.IEmployeeDatabaseSQLRepository) IEmployeeResource

Jump to

Keyboard shortcuts

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