Documentation
¶
Index ¶
Constants ¶
View Source
const (
PG_DUPLICATE_ERROR = "23505"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmployeeFilter ¶
type Repository ¶
type Repository interface { GetAll(context.Context, EmployeeFilter, dto.PaginationRequest, ) ([]*models.Employee, error) DeleteByIdentityNumber(ctx context.Context, identityNumber string, managerId int) error UpdateEmployee(ctx context.Context, identityNumber string, request *models.UpdateEmployee) (*models.UpdateEmployee, error) IdentityNumberExists(ctx context.Context, identityNumber string, managerId int) (bool, error) FindByIdentityNumberWithManagerID(ctx context.Context, identityNumber string, managerId int) (*models.IdentityNumberEmployee, error) Post(context.Context, *models.Employee) (*models.Employee, error) FindByIdentityNumber(identityNumber string) (*models.IdentityNumberEmployee, error) }
func NewEmployeeRepository ¶
func NewEmployeeRepository(db *sqlx.DB) Repository
Click to show internal directories.
Click to hide internal directories.