research_report.go 709 B

123456789101112131415161718192021222324252627
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/hongze_yb/controller/report"
  5. "hongze/hongze_yb/middleware"
  6. )
  7. // InitResearchReport 初始化报告
  8. func InitResearchReport(r *gin.Engine) {
  9. rGroup := r.Group("report").Use(middleware.Token())
  10. {
  11. rGroup.GET("/research_report", report.GetResearchReportInfo)
  12. rGroup.GET("/research_report_chapter", report.GetResearchReportChapter)
  13. }
  14. initResearchReport(r)
  15. }
  16. // initResearchReport 初始化报告
  17. func initResearchReport(r *gin.Engine) {
  18. rGroup := r.Group("api/report").Use(middleware.Token())
  19. {
  20. rGroup.GET("/research_report", report.GetResearchReportInfo)
  21. rGroup.GET("/research_report_chapter", report.GetResearchReportChapter)
  22. }
  23. }