edb_info.go 418 B

123456789101112131415
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/hongze_yb/controller/edb_info"
  5. "hongze/hongze_yb/middleware"
  6. )
  7. func InitEdbInfo(r *gin.Engine) {
  8. rg := r.Group("api/edb_info").Use(middleware.Token(), middleware.CheckBaseAuth())
  9. rg.GET("/data", edb_info.EdbData)
  10. prg := r.Group("api/predict_edb_info").Use(middleware.Token(), middleware.CheckBaseAuth())
  11. prg.GET("/data", edb_info.PredictEdbData)
  12. }