index_data.go 436 B

123456789101112131415
  1. package routers
  2. import (
  3. "eta_gn/eta_bridge/controller/index_data"
  4. "eta_gn/eta_bridge/middleware"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // InitIndexData 获取指标信息
  8. func InitIndexData(r *gin.RouterGroup) {
  9. gnControl := new(index_data.GnIndexController)
  10. gnGroup := r.Group("index_data/gn/").Use(middleware.InternalToken())
  11. gnGroup.POST("/edb/list", gnControl.GetPageIndex)
  12. gnGroup.POST("/edb/data/list", gnControl.GetIndexData)
  13. }