report.go 1.1 KB

123456789101112131415161718192021222324252627282930
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/hongze_yb/controller/report"
  5. "hongze/hongze_yb/middleware"
  6. )
  7. func InitReport(r *gin.Engine) {
  8. rGroup := r.Group("api/report").Use(middleware.Token())
  9. rGroup.GET("/detail", report.Detail)
  10. rGroup.GET("/chapter/detail", report.ChapterDetail)
  11. rGroup.GET("/chapter/ticker", report.TickerData)
  12. rGroup.GET("/list", report.List)
  13. rGroup.GET("/collect", report.CollectReportList)
  14. rGroup.GET("/search", report.Search)
  15. rGroup.POST("/detail/rddp_share_img", report.RddpShareImg)
  16. rGroup.GET("/ppt_img", report.ReportPptImgList)
  17. rGroup.GET("/variety/list", report.VarietyReportList)
  18. rGroup.POST("/report_chapter/set", report.ReportChapterSet)
  19. rGroup.GET("/pdf/detail", report.PdfDetail)
  20. rGroup2 := r.Group("api/classify").Use(middleware.Token())
  21. rGroup2.GET("/ficc", report.ClassifyFirstList)
  22. rGroup2.GET("/list", report.ClassifyList)
  23. rGroup2.GET("/simple/list", report.ClassifySimpleList)
  24. rGroup2.GET("/detail", report.ClassifyDetail)
  25. rGroup2.GET("/detail/reports", report.ClassifyDetailReports)
  26. rGroup2.GET("/menu/list", report.ClassifyMenuList)
  27. }