-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ulrich Lissé
committed
Apr 8, 2019
1 parent
eb9fda3
commit 0616c0f
Showing
5 changed files
with
63 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package domain | ||
|
||
import "time" | ||
|
||
type TimeEntry struct { | ||
Id string | ||
Minutes Minutes | ||
Date LocalDate | ||
Note string | ||
Billable bool | ||
Locked bool | ||
Revenue float64 | ||
HourlyRate int | ||
UserId string | ||
UserName string | ||
ProjectId string | ||
ProjectName string | ||
CustomerId string | ||
CustomerName string | ||
ServiceId string | ||
ServiceName string | ||
CreatedAt time.Time | ||
UpdatedAt time.Time | ||
} | ||
|
||
type TimeEntryCommand struct { | ||
Date *LocalDate | ||
Minutes *Minutes | ||
Note string | ||
UserId string | ||
ProjectId string | ||
ServiceId string | ||
Locked bool | ||
} | ||
|
||
type TimeEntryQuery struct { | ||
From *LocalDate | ||
To *LocalDate | ||
Direction string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters