|
@@ -1,8 +1,8 @@
|
|
|
package initialize
|
|
|
|
|
|
import (
|
|
|
+ "confrontation-training/api/chat"
|
|
|
"confrontation-training/api/gateway"
|
|
|
- "confrontation-training/api/question"
|
|
|
"confrontation-training/global"
|
|
|
_ "confrontation-training/global"
|
|
|
"confrontation-training/middleware"
|
|
@@ -55,10 +55,10 @@ func Router() {
|
|
|
device.GET("/:mac/stop/trans/", gateway.StopTrans)
|
|
|
device.GET("/:mac/stop/collect/", gateway.StopCollect)
|
|
|
device.GET("/:mac/disconnect/", gateway.Disconnect)
|
|
|
- chat := v1.Group("/chat")
|
|
|
- chat.GET("/get/question/", question.GetQuestionService().GetQuestion)
|
|
|
- chat.POST("/create/question/", question.GetQuestionService().CreateQuestion)
|
|
|
- chat.GET("/get/answer/", question.GteAnswerService().CreateAnswer)
|
|
|
+ chats := v1.Group("/chat")
|
|
|
+ chats.GET("/get/chat/", chat.GetQuestionService().GetQuestion)
|
|
|
+ chats.POST("/create/chat/", chat.GetQuestionService().CreateQuestion)
|
|
|
+ chats.GET("/get/answer/", chat.GteAnswerService().CreateAnswer)
|
|
|
|
|
|
//
|
|
|
//record := v1.Group("/record")
|