trade_analysis.go 357 B

123456789101112131415
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/hongze_yb/controller/trade_analysis"
  5. "hongze/hongze_yb/middleware"
  6. )
  7. func InitTradeAnalysis(r *gin.Engine) {
  8. rGroup := r.Group("api/trade/analysis").Use(middleware.Token())
  9. {
  10. rGroup.GET("/classify", trade_analysis.GetClassifyName)
  11. rGroup.GET("/top", trade_analysis.GetPositionTop)
  12. }
  13. }