1
0
Fork 0

feat: add pkg/training/ with types, structs, and repository interfaces

This commit is contained in:
Vojtěch Mareš 2024-04-27 21:31:04 +02:00
parent afe0f18523
commit 00158e89fe
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
9 changed files with 113 additions and 0 deletions

View file

@ -0,0 +1,13 @@
package training
type AttendeeRepository interface {
Find(AttendeeID) (*Attendee, error)
FindAll() ([]Attendee, error)
FindAllForDate(DateID) ([]Attendee, error)
CountForDate(DateID) (int, error)
Save(*Attendee) error
Update(*Attendee) error
UpdateAttendance(AttendeeID, bool) error
UpdatePayment(AttendeeID, bool) error
Delete(AttendeeID) error
}