pcsg.go 384 B

1234567891011121314
  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. // InitPCSG 中石油新加坡
  8. func InitPCSG(r *gin.RouterGroup) {
  9. control := new(index_data.PCSGIndexController)
  10. group := r.Group("pcsg/").Use(middleware.InternalToken())
  11. group.POST("bloomberg/index_data/general", control.GetBloombergIndexDataGeneral)
  12. }