working on absence
This commit is contained in:
22
Backend/models/absence.go
Normal file
22
Backend/models/absence.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type Absence struct {
|
||||
CounterId int
|
||||
CardUID string
|
||||
AbwesenheitTyp int8
|
||||
Datum time.Time
|
||||
}
|
||||
|
||||
func NewAbsence(card_uid string, abwesenheit_typ int8, datum time.Time) Absence {
|
||||
return Absence{
|
||||
CardUID: card_uid,
|
||||
AbwesenheitTyp: abwesenheit_typ,
|
||||
Datum: datum,
|
||||
}
|
||||
}
|
||||
|
||||
func (a *Absence) Insert() {
|
||||
// qStr, err := DB.Prepare(`INSERT INTO`)
|
||||
}
|
||||
@@ -15,7 +15,7 @@ type WorkWeek struct {
|
||||
WorkHours time.Duration
|
||||
}
|
||||
|
||||
type WeekStatus int16
|
||||
type WeekStatus int8
|
||||
|
||||
const (
|
||||
None WeekStatus = iota
|
||||
|
||||
Reference in New Issue
Block a user