Roc před 2 roky
rodič
revize
32a20eb137
1 změnil soubory, kde provedl 5 přidání a 6 odebrání
  1. 5 6
      routers/router.go

+ 5 - 6
routers/router.go

@@ -8,10 +8,9 @@
 package routers
 
 import (
+	beego "github.com/beego/beego/v2/server/web"
 	"hongze/hongze_edb_lib/controllers"
 	"hongze/hongze_edb_lib/controllers/future_good"
-
-	beego "github.com/beego/beego/v2/server/web"
 )
 
 func init() {
@@ -131,14 +130,14 @@ func init() {
 				&controllers.PredictController{},
 			),
 		),
-		beego.NSNamespace("/com_trade",
+		beego.NSNamespace("/future_good",
 			beego.NSInclude(
-				&controllers.ComTradeController{},
+				&future_good.FutureGoodEdbInfoController{},
 			),
 		),
-		beego.NSNamespace("/future_good",
+		beego.NSNamespace("/com_trade",
 			beego.NSInclude(
-				&future_good.FutureGoodEdbInfoController{},
+				&controllers.ComTradeController{},
 			),
 		),
 	)