employee

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IEmployeeDatabaseSQLRepository

type IEmployeeDatabaseSQLRepository 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)
}

type PostgresEmployeeDatabaseSQLRepository

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

func (*PostgresEmployeeDatabaseSQLRepository) CountAllEmployee

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

func (*PostgresEmployeeDatabaseSQLRepository) CreateEmployee

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

func (*PostgresEmployeeDatabaseSQLRepository) DeleteEmployee

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

func (*PostgresEmployeeDatabaseSQLRepository) GetEmployee

func (*PostgresEmployeeDatabaseSQLRepository) GetListEmployeeAndCount

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

func (*PostgresEmployeeDatabaseSQLRepository) UpdateEmployee

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

Jump to

Keyboard shortcuts

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