Documentation ¶
Index ¶
- type EmployeeResource
- func (r *EmployeeResource) CountAllEmployee(query *types.Query) (int, error)
- func (r *EmployeeResource) CreateEmployee(payload *sql.Employee) error
- func (r *EmployeeResource) DeleteEmployee(payload *sql.Employee) error
- func (r *EmployeeResource) GetEmployee(query *types.Query) (*sql.Employee, error)
- func (r *EmployeeResource) GetListEmployeeAndCount(query *types.Query) ([]*sql.Employee, int, error)
- func (r *EmployeeResource) UpdateEmployee(payload *sql.Employee) error
- type IEmployeeResource
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 (*EmployeeResource) GetListEmployeeAndCount ¶
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
Click to show internal directories.
Click to hide internal directories.