xy_sh-20260724181350/xy_sh/internal/router/router.go

17 lines
391 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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