Documentation ¶
Index ¶
- type App
- func (a *App) AddEmployee(ctx context.Context, employee domain.Employee) (uint64, error)
- func (a *App) DeleteEmployee(ctx context.Context, id uint64) error
- func (a *App) GetEmployee(ctx context.Context, id uint64) (domain.Employee, error)
- func (a *App) ListEmployee(ctx context.Context) ([]domain.Employee, error)
- func (a *App) UpdateEmployee(ctx context.Context, employee domain.Employee) (domain.Employee, error)
- type StaffRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) AddEmployee ¶
func (*App) GetEmployee ¶
func (*App) ListEmployee ¶
type StaffRepo ¶
type StaffRepo interface { Save(ctx context.Context, e domain.Employee) (uint64, error) Get(ctx context.Context, id uint64) (domain.Employee, error) Update(ctx context.Context, u domain.Employee) (domain.Employee, error) Delete(ctx context.Context, id uint64) error List(ctx context.Context) ([]domain.Employee, error) }
Click to show internal directories.
Click to hide internal directories.