report.go 801 B

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