|
@@ -2,6 +2,7 @@ package message
|
2
|
2
|
|
3
|
3
|
import (
|
4
|
4
|
"errors"
|
|
5
|
+ "spaceofcheng/services/models/cases"
|
5
|
6
|
"spaceofcheng/services/models/course"
|
6
|
7
|
"spaceofcheng/services/models/message"
|
7
|
8
|
"spaceofcheng/services/models/model"
|
|
@@ -14,6 +15,7 @@ type MessageServ struct {
|
14
|
15
|
ctx *utils.Context
|
15
|
16
|
dao *message.MessageDAO
|
16
|
17
|
coursedao *course.CourseDAO
|
|
18
|
+ casedao *cases.CaseDAO
|
17
|
19
|
}
|
18
|
20
|
|
19
|
21
|
// NewMessageServ 初始化
|
|
@@ -22,6 +24,7 @@ func NewMessageServ(ctx *utils.Context) *MessageServ {
|
22
|
24
|
ctx: ctx,
|
23
|
25
|
dao: message.NewMessageDAO(ctx),
|
24
|
26
|
coursedao: course.NewCourseDAO(ctx),
|
|
27
|
+ casedao: cases.NewCaseDAO(ctx),
|
25
|
28
|
}
|
26
|
29
|
}
|
27
|
30
|
|