From c6cd7cd10418bb1f4cbb75eea9f05e42c17dfdf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Tue, 8 Aug 2023 15:09:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=AE=E5=BD=95=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 8 ++++---- {route => routes}/index.go | 2 +- {route => routes}/member.go | 2 +- {route => routes}/shop.go | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) rename {route => routes}/index.go (90%) rename {route => routes}/member.go (94%) rename {route => routes}/shop.go (91%) diff --git a/main.go b/main.go index edb0157..4192171 100644 --- a/main.go +++ b/main.go @@ -2,7 +2,7 @@ package main import ( "web/database" - "web/route" + "web/routes" "web/server" ) @@ -12,9 +12,9 @@ func main() { database.InitDB() // 注册模块路由 - route.RegistIndex(s) - route.RegistMember(s) - route.RegistShop(s) + routes.RegistIndex(s) + routes.RegistMember(s) + routes.RegistShop(s) s.Listen(":8080") } diff --git a/route/index.go b/routes/index.go similarity index 90% rename from route/index.go rename to routes/index.go index dbde511..975f1e2 100644 --- a/route/index.go +++ b/routes/index.go @@ -1,4 +1,4 @@ -package route +package routes import ( "web/controllers" diff --git a/route/member.go b/routes/member.go similarity index 94% rename from route/member.go rename to routes/member.go index cbb579a..a5fa157 100644 --- a/route/member.go +++ b/routes/member.go @@ -1,4 +1,4 @@ -package route +package routes import ( "web/controllers/member" diff --git a/route/shop.go b/routes/shop.go similarity index 91% rename from route/shop.go rename to routes/shop.go index 176f83f..5b99041 100644 --- a/route/shop.go +++ b/routes/shop.go @@ -1,4 +1,4 @@ -package route +package routes import ( "web/controllers/shop"