30 lines
549 B
Go
30 lines
549 B
Go
package domain
|
|
|
|
import "example.com/composition/internal/amount"
|
|
|
|
type Employee struct {
|
|
EmployeeName string
|
|
Salary amount.Money
|
|
Employer *amount.Money
|
|
Enabled bool
|
|
Labels []string
|
|
}
|
|
type Result struct {
|
|
Employee
|
|
ID int64
|
|
}
|
|
|
|
// Distinct container item types exercise explicit Go collection copying.
|
|
type Row struct{ Value string }
|
|
type RowDTO struct{ Value string }
|
|
type Batch struct {
|
|
Rows []Row
|
|
Fixed [2]Row
|
|
Optional *string
|
|
}
|
|
type BatchDTO struct {
|
|
Rows []RowDTO
|
|
Fixed [2]RowDTO
|
|
Optional *string
|
|
}
|