employee

package
v0.0.0-...-394b0d7 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmployeeDatabaseSQLRepository

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

func (*EmployeeDatabaseSQLRepository) CountAllEmployee

func (r *EmployeeDatabaseSQLRepository) CountAllEmployee(query *pkg_types.QuerySQL) (int, error)

func (*EmployeeDatabaseSQLRepository) CreateEmployee

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

func (*EmployeeDatabaseSQLRepository) DeleteEmployee

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

func (*EmployeeDatabaseSQLRepository) GetEmployee

func (*EmployeeDatabaseSQLRepository) GetListEmployeeAndCount

func (r *EmployeeDatabaseSQLRepository) GetListEmployeeAndCount(query *pkg_types.QuerySQL) ([]*sql.Employee, int, error)

func (*EmployeeDatabaseSQLRepository) UpdateEmployee

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

type IEmployeeDatabaseSQLRepository

type IEmployeeDatabaseSQLRepository interface {
	CreateEmployee(payload *sql.Employee) error
	UpdateEmployee(payload *sql.Employee) error
	DeleteEmployee(payload *sql.Employee) error
	GetListEmployeeAndCount(query *pkg_types.QuerySQL) ([]*sql.Employee, int, error)
	GetEmployee(query *pkg_types.QuerySQL) (*sql.Employee, error)
	CountAllEmployee(query *pkg_types.QuerySQL) (int, error)
}

Jump to

Keyboard shortcuts

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