-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepository.go
More file actions
31 lines (28 loc) · 813 Bytes
/
repository.go
File metadata and controls
31 lines (28 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package repository
import (
"database/sql"
)
type Repositories struct {
User UserRepository
Category CategoryRepository
Service ServiceRepository
Settings SettingsRepository
Device DeviceRepository
Specialist SpecialistRepository
Appointment AppointmentRepository
Payment PaymentRepository
Contact ContactRepository
}
func NewRepositories(db *sql.DB) *Repositories {
return &Repositories{
User: NewUserRepository(db),
Category: NewCategoryRepository(db),
Service: NewServiceRepository(db),
Settings: NewSettingsRepository(db),
Device: NewDeviceRepository(db),
Specialist: NewSpecialistRepository(db),
Appointment: NewAppointmentRepository(db),
Payment: NewPaymentRepository(db),
Contact: NewContactRepository(db),
}
}