This commit is contained in:
2026-01-27 16:26:48 +08:00
parent 3ef7b7d1fb
commit f8806eb71c
19 changed files with 1260 additions and 358 deletions

View File

@@ -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)
}
// 回调路由(不需要认证,但需要验证签名)

View 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路由注册完成")
}