From a527a0c7d4526462adfe0c07393c0ad6722302af Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Fri, 24 Jul 2026 18:13:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=87=E4=BB=B6:=20xy=5Fsh?= =?UTF-8?q?/internal/router/router.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xy_sh/internal/router/router.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 xy_sh/internal/router/router.go diff --git a/xy_sh/internal/router/router.go b/xy_sh/internal/router/router.go new file mode 100644 index 0000000..161ed84 --- /dev/null +++ b/xy_sh/internal/router/router.go @@ -0,0 +1,17 @@ +package router + +import ( + "github.com/gofiber/fiber/v2" + + "xy_sh/internal/middleware" + "xy_sh/internal/service" +) + +// SetupRoutes 注册路由 +func SetupRoutes(app *fiber.App, svc *service.Service) { + // 所有接口都需要签名验证 + api := app.Group("/api", middleware.AuthMiddleware()) + + // 接口1:卡券/直充权益下单接口 + api.Post("/order/create", svc.HandleOrderCreate) +} \ No newline at end of file