english_report.go 750 B

12345678910111213141516171819202122
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/hongze_yb_en_api/controller/english_report"
  5. "hongze/hongze_yb_en_api/middleware"
  6. )
  7. func InitReport(baseGroup *gin.RouterGroup) {
  8. //登录
  9. controller := new(english_report.EnglishReportController)
  10. vController := new(english_report.EnglishVideoController)
  11. group := baseGroup.Group("english_report/").Use(middleware.ShareEmailHandler()).Use(middleware.OpenToken())
  12. group.GET("list", controller.List)
  13. group.GET("classify", controller.Classify)
  14. group.GET("filter_by_es", controller.FilterByEs)
  15. group.GET("detail", controller.Detail)
  16. group.GET("video/list", vController.List)
  17. group.GET("video/detail", vController.Detail)
  18. group.POST("video/play_log", vController.VideoPlayLog)
  19. }