17 lines
391 B
Go
17 lines
391 B
Go
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)
|
||
} |