diff --git a/pkg/ast/route/router.go.tpl b/pkg/ast/route/router.go.tpl index b77c913..6e96ee4 100644 --- a/pkg/ast/route/router.go.tpl +++ b/pkg/ast/route/router.go.tpl @@ -27,6 +27,10 @@ func (r *Routes) Prepare() error { return nil } +func (r *Routes) Name() string { + return "{{.PackageName}}" +} + func (r *Routes) Register(router fiber.Router) { {{- range $key, $value := .Routes }} // 注册路由组: {{$key}}