price_driven.go 459 B

123456789101112131415
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/hongze_yb/controller"
  5. "hongze/hongze_yb/controller/price_driven"
  6. "hongze/hongze_yb/middleware"
  7. )
  8. func InitPriceDriven(r *gin.Engine) {
  9. rGroup := r.Group("api/price_driven").Use(middleware.Token(), middleware.CheckBaseAuth())
  10. rGroup.GET("/tab", controller.GetVarietyTagTree)
  11. rGroup.GET("/detail", price_driven.PriceDrivenDetail)
  12. rGroup.POST("/visit_log", price_driven.PriceDrivenVisitLog)
  13. }