router.go 544 字节
package routers

import (
	"github.com/gin-gonic/gin/ginS"
	"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/port/ginsvr/controllers"
	"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/port/ginsvr/middleware"
)

func init() {
	//ginS.Use(middleware.CreateRequestBodyFilter())
	ginS.Use(middleware.CreateRequstLogFilter())

	order := &controllers.OrderController{}
	ginS.POST("/order/statistics", order.Statistics)
	ginS.POST("/order/details", order.OrderDetail)
	ginS.POST("/order/list", order.OrderList)
	ginS.POST("/order/intentions", order.Intentions)
}