Commit 956e629b by 孙龙

up

parent ec679887
set MICRO_REGISTRY=etcd set MICRO_REGISTRY=etcd
set MICRO_REGISTRY_ADDRESS=192.168.2.232:2379 set MICRO_REGISTRY_ADDRESS=192.168.2.232:2379
go run ../cmd/course_http_server.go go run ../cmd/course_http_server.go -config=../conf/config.ini
\ No newline at end of file \ No newline at end of file
*
!.gitignore
\ No newline at end of file
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"search_server/service" "search_server/service"
) )
func Init() { func init() {
courseService := service.NewCourseServiceImpl() courseService := service.NewCourseServiceImpl()
gin_.NewBuilder().WithService(courseService). gin_.NewBuilder().WithService(courseService).
WithMiddleware(Check_Middleware()). WithMiddleware(Check_Middleware()).
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"search_server/service" "search_server/service"
) )
func Init2() { func init() {
courseService:=service.NewCourseTopicServiceImpl() courseService:=service.NewCourseTopicServiceImpl()
gin_.NewBuilder().WithService(courseService). gin_.NewBuilder().WithService(courseService).
WithMiddleware(Check_Middleware()). WithMiddleware(Check_Middleware()).
......
package gin_ package gin_
import "github.com/gin-gonic/gin" import (
"github.com/gin-gonic/gin"
)
var HandlerMap map[string]map[string]gin.HandlerFunc var HandlerMap map[string]map[string]gin.HandlerFunc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment