package routes import ( "tyapi-server/internal/infrastructure/http/handlers" sharedhttp "tyapi-server/internal/shared/http" ) // QYGLReportRoutes 企业报告页面路由注册器 type QYGLReportRoutes struct { handler *handlers.QYGLReportHandler } // NewQYGLReportRoutes 创建企业报告页面路由注册器 func NewQYGLReportRoutes( handler *handlers.QYGLReportHandler, ) *QYGLReportRoutes { return &QYGLReportRoutes{ handler: handler, } } // Register 注册企业报告页面路由 func (r *QYGLReportRoutes) Register(router *sharedhttp.GinRouter) { engine := router.GetEngine() // 企业全景报告页面(实时生成) engine.GET("/reports/qygl", r.handler.GetQYGLReportPage) // 企业全景报告页面(通过编号查看) engine.GET("/reports/qygl/:id", r.handler.GetQYGLReportPageByID) }