Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶
func NewApplication(api *fiber.App, repository data.EmployeesRepository) *Application
func (*Application) Close ¶
func (a *Application) Close()
func (*Application) SetupRoutes ¶
func (a *Application) SetupRoutes()
type CreateEmployeeDTO ¶
type CreateEmployeeDTO struct { Name string `json:"name"` Salary int64 `json:"salary"` Age int `json:"age"` }
func (*CreateEmployeeDTO) ToEmployee ¶
func (dto *CreateEmployeeDTO) ToEmployee() *domain.Employee
type EmployeeDTO ¶
type EmployeeDTO struct { Id string `json:"id"` Name string `json:"name"` Salary int64 `json:"salary"` Age int `json:"age"` }
func EmployeeToEmployeeDTO ¶
func EmployeeToEmployeeDTO(e *domain.Employee) *EmployeeDTO
func EmployeesToEmployeesDto ¶
func EmployeesToEmployeesDto(employees []domain.Employee) []EmployeeDTO
type ModifyEmployeeDTO ¶
type ModifyEmployeeDTO struct { Name string `json:"name"` Salary int64 `json:"salary"` Age int `json:"age"` }
func (*ModifyEmployeeDTO) ToEmployee ¶
func (dto *ModifyEmployeeDTO) ToEmployee(id string) *domain.Employee
Click to show internal directories.
Click to hide internal directories.