Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
78402768
authored
Jun 29, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复冲突以及数量问题
parent
546176a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
controller/course_controller.go
controller/course_topic_controller.go
controller/mouser_controller.go
controller/course_controller.go
View file @
78402768
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
"search_server/service"
"search_server/service"
)
)
func
init
()
{
func
Init2
()
{
courseService
:=
service
.
NewCourseServiceImpl
()
courseService
:=
service
.
NewCourseServiceImpl
()
gin_
.
NewBuilder
()
.
WithService
(
courseService
)
.
gin_
.
NewBuilder
()
.
WithService
(
courseService
)
.
WithMiddleware
(
Check_Middleware
())
.
WithMiddleware
(
Check_Middleware
())
.
...
...
controller/course_topic_controller.go
View file @
78402768
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
"search_server/service"
"search_server/service"
)
)
func
i
nit
()
{
func
I
nit
()
{
courseService
:=
service
.
NewCourseTopicServiceImpl
()
courseService
:=
service
.
NewCourseTopicServiceImpl
()
gin_
.
NewBuilder
()
.
WithService
(
courseService
)
.
gin_
.
NewBuilder
()
.
WithService
(
courseService
)
.
WithMiddleware
(
Check_Middleware
())
.
WithMiddleware
(
Check_Middleware
())
.
...
...
controller/mouser_controller.go
View file @
78402768
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
"search_server/service"
"search_server/service"
)
)
func
init
()
{
func
Init3
()
{
MouserService
:=
service
.
NewMouserServiceImpl
()
MouserService
:=
service
.
NewMouserServiceImpl
()
gin_
.
NewBuilder
()
.
WithService
(
MouserService
)
.
gin_
.
NewBuilder
()
.
WithService
(
MouserService
)
.
WithEndpoint
(
MouserGetData
(
MouserService
))
.
WithEndpoint
(
MouserGetData
(
MouserService
))
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment