All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 6m33s
**变更说明**: - 删除所有 *_test.go 文件(单元测试、集成测试、验收测试、流程测试) - 删除整个 tests/ 目录 - 更新 CLAUDE.md:用"测试禁令"章节替换所有测试要求 - 删除测试生成 Skill (openspec-generate-acceptance-tests) - 删除测试生成命令 (opsx:gen-tests) - 更新 tasks.md:删除所有测试相关任务 **新规范**: - ❌ 禁止编写任何形式的自动化测试 - ❌ 禁止创建 *_test.go 文件 - ❌ 禁止在任务中包含测试相关工作 - ✅ 仅当用户明确要求时才编写测试 **原因**: 业务系统的正确性通过人工验证和生产环境监控保证,测试代码维护成本高于价值。 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
28 lines
948 B
Go
28 lines
948 B
Go
package routes
|
||
|
||
import (
|
||
"github.com/gofiber/fiber/v2"
|
||
|
||
"github.com/break/junhong_cmp_fiber/internal/bootstrap"
|
||
"github.com/break/junhong_cmp_fiber/pkg/openapi"
|
||
)
|
||
|
||
// RegisterH5Routes 注册H5相关路由
|
||
func RegisterH5Routes(router fiber.Router, handlers *bootstrap.Handlers, middlewares *bootstrap.Middlewares, doc *openapi.Generator, basePath string) {
|
||
// 认证路由已迁移到 /api/auth,参见 RegisterAuthRoutes
|
||
authGroup := router.Group("", middlewares.H5Auth)
|
||
|
||
if handlers.H5Order != nil {
|
||
registerH5OrderRoutes(authGroup, handlers.H5Order, doc, basePath)
|
||
}
|
||
if handlers.H5Recharge != nil {
|
||
registerH5RechargeRoutes(authGroup, handlers.H5Recharge, doc, basePath)
|
||
}
|
||
if handlers.EnterpriseDeviceH5 != nil {
|
||
registerH5EnterpriseDeviceRoutes(authGroup, handlers.EnterpriseDeviceH5, doc, basePath)
|
||
}
|
||
if handlers.H5PackageUsage != nil {
|
||
registerH5PackageUsageRoutes(authGroup, handlers.H5PackageUsage, doc, basePath)
|
||
}
|
||
}
|