f
This commit is contained in:
@@ -66,6 +66,9 @@ func (r *CertificationRoutes) Register(router *http.GinRouter) {
|
||||
// 前端确认是否完成签署
|
||||
authGroup.POST("/confirm-sign", r.handler.ConfirmSign)
|
||||
|
||||
// 管理员代用户完成认证(暂不关联合同)
|
||||
authGroup.POST("/admin/complete-without-contract", r.handler.AdminCompleteCertificationWithoutContract)
|
||||
|
||||
}
|
||||
|
||||
// 回调路由(不需要认证,但需要验证签名)
|
||||
|
||||
39
internal/infrastructure/http/routes/pdfg_routes.go
Normal file
39
internal/infrastructure/http/routes/pdfg_routes.go
Normal file
@@ -0,0 +1,39 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"go.uber.org/zap"
|
||||
|
||||
sharedhttp "tyapi-server/internal/shared/http"
|
||||
"tyapi-server/internal/infrastructure/http/handlers"
|
||||
)
|
||||
|
||||
// PDFGRoutes PDFG路由
|
||||
type PDFGRoutes struct {
|
||||
pdfgHandler *handlers.PDFGHandler
|
||||
logger *zap.Logger
|
||||
}
|
||||
|
||||
// NewPDFGRoutes 创建PDFG路由
|
||||
func NewPDFGRoutes(
|
||||
pdfgHandler *handlers.PDFGHandler,
|
||||
logger *zap.Logger,
|
||||
) *PDFGRoutes {
|
||||
return &PDFGRoutes{
|
||||
pdfgHandler: pdfgHandler,
|
||||
logger: logger,
|
||||
}
|
||||
}
|
||||
|
||||
// Register 注册相关路由
|
||||
func (r *PDFGRoutes) Register(router *sharedhttp.GinRouter) {
|
||||
engine := router.GetEngine()
|
||||
apiGroup := engine.Group("/api/v1")
|
||||
|
||||
{
|
||||
// PDF下载接口 - 不需要认证(因为下载链接已经包含了验证信息)
|
||||
apiGroup.GET("/pdfg/download", r.pdfgHandler.DownloadPDF)
|
||||
}
|
||||
|
||||
r.logger.Info("PDFG路由注册完成")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user