index_data.go 1.0 KB

1234567891011121314151617181920212223242526
  1. package routers
  2. import (
  3. "eta/eta_bridge/controller/index_data"
  4. "eta/eta_bridge/middleware"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // InitIndexData 获取指标信息
  8. func InitIndexData(r *gin.RouterGroup) {
  9. control := new(index_data.JiaYueIndexController)
  10. group := r.Group("index_data/").Use(middleware.InternalToken())
  11. group.POST("jiayue/index", control.GetIndex)
  12. group.POST("jiayue/index_data", control.GetIndexData)
  13. group.POST("jiayue/page_index", control.GetPageIndex)
  14. group.POST("jiayue/frequency_list", control.GetIndexFrequency)
  15. group.POST("jiayue/new_index", control.GetRecentNewIndex)
  16. group.POST("jiayue/menu_list", control.GetMenuList)
  17. group.POST("jiayue/build_import_excel", control.BuildImportExcel)
  18. zhongjiControl := new(index_data.ZhongjiIndexController)
  19. zhongjiGroup := r.Group("index_data/zhongji/").Use(middleware.InternalToken())
  20. zhongjiGroup.POST("/smm/list", zhongjiControl.GetIndexList)
  21. zhongjiGroup.POST("/smm/data", zhongjiControl.GetIndexData)
  22. zhongjiGroup.POST("/smm/latest", zhongjiControl.GetIndexDataLatest)
  23. }