Add existing codebase
This commit is contained in:
commit
e12550a643
25 changed files with 1409 additions and 0 deletions
27
pkg/brainbuffer/appointment/entity.go
Normal file
27
pkg/brainbuffer/appointment/entity.go
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
package appointment
|
||||
|
||||
import (
|
||||
"brainbuffer/pkg/brainbuffer/scheduling"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Status int
|
||||
|
||||
const (
|
||||
Overdue Status = iota
|
||||
Upcoming
|
||||
Missed
|
||||
Completed
|
||||
)
|
||||
|
||||
type Appointment struct {
|
||||
ID int64
|
||||
TaskID int64
|
||||
Status Status
|
||||
SchedulingPattern scheduling.Pattern
|
||||
Time time.Time
|
||||
DurationOffset time.Duration
|
||||
CreationTime time.Time
|
||||
}
|
||||
|
||||
type Appointments []*Appointment
|
||||
Loading…
Add table
Add a link
Reference in a new issue