-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathdao_base.go
More file actions
71 lines (66 loc) · 1.92 KB
/
Copy pathdao_base.go
File metadata and controls
71 lines (66 loc) · 1.92 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package dao
import (
"gorm.io/gorm"
)
var (
// DB reference to database
DB *gorm.DB
Migrator = newMigrator()
)
type DaoWrapper struct {
CameraPresetDao
ChatDao
FileDao
StreamsDao
CoursesDao
WorkerDao
LectureHallsDao
UsersDao
UploadKeyDao
StatisticsDao
ProgressDao
ServerNotificationDao
TokenDao
NotificationsDao
IngestServerDao
VideoSectionDao
VideoSeekDao
// AuditDao.Find(...) seems like a nice api, find can be used in other dao as well if type is not embedded
AuditDao AuditDao
InfoPageDao
BookmarkDao BookmarkDao
SubtitlesDao
TranscodingFailureDao
EmailDao
RunnerDao RunnerDao
UserDefinedLectureTitlesDao
}
func NewDaoWrapper() DaoWrapper {
return DaoWrapper{
CameraPresetDao: NewCameraPresetDao(),
ChatDao: NewChatDao(),
FileDao: NewFileDao(),
StreamsDao: NewStreamsDao(),
CoursesDao: NewCoursesDao(),
WorkerDao: NewWorkerDao(),
LectureHallsDao: NewLectureHallsDao(),
UsersDao: NewUsersDao(),
UploadKeyDao: NewUploadKeyDao(),
StatisticsDao: NewStatisticsDao(),
ProgressDao: NewProgressDao(),
ServerNotificationDao: NewServerNotificationDao(),
TokenDao: NewTokenDao(),
NotificationsDao: NewNotificiationsDao(),
IngestServerDao: NewIngestServerDao(),
VideoSectionDao: NewVideoSectionDao(),
InfoPageDao: NewInfoPageDao(),
VideoSeekDao: NewVideoSeekDao(),
AuditDao: NewAuditDao(),
BookmarkDao: NewBookmarkDao(),
SubtitlesDao: NewSubtitlesDao(),
TranscodingFailureDao: NewTranscodingFailureDao(),
EmailDao: NewEmailDao(),
RunnerDao: NewRunnerDao(),
UserDefinedLectureTitlesDao: NewUserDefinedLectureTitlesDao(),
}
}