添加文件: xy_sh/internal/router/router.go

This commit is contained in:
renzhiyuan 2026-07-24 18:13:55 +08:00
parent 0aba5c1b59
commit a527a0c7d4
1 changed files with 17 additions and 0 deletions

View File

@ -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)
}