report.go 963 B

12345678910111213141516171819202122232425262728
  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. rGroup2 := r.Group("api/classify").Use(middleware.Token())
  19. rGroup2.GET("/ficc", report.ClassifyFirstList)
  20. rGroup2.GET("/list", report.ClassifyList)
  21. rGroup2.GET("/simple/list", report.ClassifySimpleList)
  22. rGroup2.GET("/detail", report.ClassifyDetail)
  23. rGroup2.GET("/detail/reports", report.ClassifyDetailReports)
  24. }