🎨 新增管理后台订单接口
This commit is contained in:
@@ -5,17 +5,22 @@ import "github.com/gin-gonic/gin"
|
||||
type OrderRouter struct{}
|
||||
|
||||
// InitOrderRouter 初始化订单路由
|
||||
func (r *OrderRouter) InitOrderRouter(AppRouter, PublicRouter *gin.RouterGroup) {
|
||||
func (r *OrderRouter) InitOrderRouter(AppRouter, SysteamRouter, PublicRouter *gin.RouterGroup) {
|
||||
appRouter := AppRouter.Group("app_order")
|
||||
publicRouter := PublicRouter.Group("app_order")
|
||||
systeamRouter := SysteamRouter.Group("order")
|
||||
{
|
||||
appRouter.POST("", orderApi.CreateOrder) // 创建订单
|
||||
appRouter.POST("/wechat/pay", orderApi.PayOrder) // 微信支付订单
|
||||
appRouter.GET("/list", orderApi.GetOrderList) // 获取订单列表
|
||||
appRouter.GET("/list", orderApi.AppGetOrderList) // 获取订单列表
|
||||
appRouter.GET(":id", orderApi.GetOrderDetail) // 获取订单详情
|
||||
appRouter.POST("/balance/pay", orderApi.BalancePay) // 余额支付
|
||||
}
|
||||
{
|
||||
publicRouter.POST("/notify", orderApi.NotifyOrder) // 微信支付回调通知
|
||||
}
|
||||
{
|
||||
systeamRouter.GET("/list", orderApi.GetOrderList) // 获取订单列表
|
||||
systeamRouter.GET(":id", orderApi.GetOrderDetail) // 获取订单详情
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user