feat: 添加服务生成配置,优化服务解析逻辑,增强错误处理

This commit is contained in:
2025-12-23 11:29:21 +08:00
parent 861748b7d9
commit 00742993db
5 changed files with 91 additions and 21 deletions

View File

@@ -103,6 +103,9 @@ func (pb *ProviderBuilder) BuildFromTypeSpec(typeSpec *ast.TypeSpec, decl *ast.G
Imports: make(map[string]string),
PkgName: context.PackageName,
ProviderFile: context.FilePath,
Location: SourceLocation{
File: context.FilePath,
},
}
// Set return type