feat: 添加服务生成配置,优化服务解析逻辑,增强错误处理
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user