添加文件: xy_sh/internal/router/router.go
This commit is contained in:
parent
0aba5c1b59
commit
a527a0c7d4
|
|
@ -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)
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue